You may wish to create a Workflow Rule that runs when something changes on the Portal Record (for example, when the Portal Record is marked as "Completed") that updates another record's stage. This is simple when the record is not within a blueprint, however, when the record is within a blueprint, you need quite complicated code to move the blueprint to the next stage.

The below script will use a ZE Portal built-in function to move your chosen Record to a new stage in the blueprint.
- // CHANGE THE VALUES BELOW DENOTED BY "#"
- arguments_map = map();
- arguments_map.put("Record_ID", ##YOUR-CHOSEN-RECORD-ID-HERE##); // for example 1234567891011121314
- arguments_map.put("Record_Module", "##YOUR-CHOSEN-MODULE-HERE##"); // for example "Deals"
- arguments_map.put("New_Stage", "##YOUR-CHOSEN-NEXT-STAGE-HERE##"); // for example "Awaiting Deployment Team"
- arguments_map.put("Selected_Transition_Name", "##YOUR-CHOSEN-TRANSITION-NAME-HERE##"); // OR NULL - for example "Client Portal Complete"
- arguments_map.put("Source","##THE-NAME-OF-THE-SCRIPT-WHERE-YOU-ARE-PLACING-THIS-CODE-HERE##"); // for example "On_Client_Portal_Complete_Workflow"
- //
- params_map = map();
- params_map.put("arguments", arguments_map);
- //
- crmAPIRequest = map();
- crmAPIRequest.put("params", params_map);
- //
- Response = zep.ZE_SA_Update_Blueprint(crmAPIRequest);
- //
- // YOU CAN DO SOMETHING WITH THE "Response" below if you want to.

Note, this only works when the Blueprint transition does not have any steps in the "During" part of the transition.