How to get Catalog task field value in the workflow activity.

bhargavi143
Tera Contributor

Hi Team,
I have a requirement we need to add a custom field, the type of the field is True/false in the catalog task once the task is completed and value is set to that field,I need to get the value of the custom field in the workflow.If the value is true i need to trigger one activity or if the value is false i needs to trigger another activity.

How can we achieve this?

Please help me.
Thanks.

1 ACCEPTED SOLUTION

Instead of "request_item" you can use "parent" in line no. 8 and also verify that in the task record in which field RITM no. gets populated. And if it is different than request_item and parent then use that instead of both.

 

Thank you!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

View solution in original post

11 REPLIES 11

Hi Brad,
I have tried without quotes in the if condition but its not working as expected.


Ensure that that request_item field on the Catalog Task is being populated in your environment, otherwise use 'parent' in the addQuery.  Add a log line within the grTask.next() block at the beginning to confirm if a Catalog Task record is returned, and the value of the custom field:

workflow.info('Catalog Task found: ' + gr.field_name);

Check this log via the Workflow Context related link on the RITM record, on the Log tab.

Please update your 12 no. Line with below line and try again by generating new request:

if (grTask.custom_field == true){

 

And also check the default value of this custom field if present.

 

Thank you!!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Hi Dnyaneshwaree ,
I have tried the above changes but its not triggering true condition and the default value of custom field is false when we checked that check box the value turns to true.

Thanks.

 
PREVIEW
 
 
 

Instead of "request_item" you can use "parent" in line no. 8 and also verify that in the task record in which field RITM no. gets populated. And if it is different than request_item and parent then use that instead of both.

 

Thank you!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru