I have the requirement to generate unique if for a property,for that i created a activity with Call Work.-GenerateId method passed some prefix to it and the other thing i used the property set method,The activity was working fine and i can also see the id getting generated on clipboard page but the value in property is not getting set.
so i tried to set the property using clipboard page but that didnt worked,by referencing the property from clipboard page,
Another i tried using obj-open with data class with property name of data class(.ID) and property value of work class(.ID) for getting access of particular records and tried to update that property but that too didn't worked.
Can u help me or suggest me where i am going wrong,and i am using pega7.3
If you check the Java code in GenerateID activity, you can see that new id is put on the steppage on .pyID property.
You can modify this activity by adding a new out parameter and put the generated id to that parameter with tools.putParamValue("paramName", nextID) function. You can then use the Parameter value to set new id to your property on next step after calling this activity.