Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Vaughn,
Not sure if I understood your question correctly. However you can use below expression in workflow to change Promotion request name,
wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice) primaryBusinessObject;
wt.maturity.PromotionNoticeIdentity promotionNoticeIdentity = (wt.maturity.PromotionNoticeIdentity) pn.getIdentificationObject();
// instead of newName you can use variable from workflow
promotionNoticeIdentity.setName("newName");
wt.fc.IdentityHelper.service.changeIdentity(pn, promotionNoticeIdentity);
Hope this helps !!!
Thanks,
Shreyas