Skip to main content
Question

Workflow - Fetch Variable from a Newly Created Record


Forum|alt.badge.img+12

Hello,

I’m trying to create a new Work Task and fetch the key value TaskSeq to create a new Assignment in Cloud. When I debug the workflow, I get ‘Resource not found’ error. Am I passing the value wrong?

Work Task Creation
Fetch the TaskSeq value from the created Work Task above
Error ‘Resource not found’

Kind Regards

Priyanka Cecilia

2 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • 124 replies
  • June 22, 2023

Hi,

It seems you also need to pass in WoNo attribute when creating a new Work Task.

 

Can you give it a try, and see?

 

Work Task Creation
Works in debug 

 


Forum|alt.badge.img+12

Hi @kamnlk,

Yes, I was able to resolve this issue. Thank you.

Please assist if you are aware of my other queries: 

Issue 1: I’ve added a custom attribute as a Reference field to Prepare Work Order screen. While debugging in the Workflow, instead of getting the value I’ve selected in the dropdown, it fetches the 1st value from that Reference Entity.

For example: Dropdown values are ‘Value A’ and ‘Value B’. I’ve selected ‘Value B’ from the dropdown but in the workflow it picks up ‘Value A’.

Issue 2: Along with that, I can see the ObjKey of that value instead of the field value as shown below. 

If I use a baseline Reference field, I do not face this issue.

Could there be any reason for this with a custom reference field? 

Value in the Prepare WO screen dropdown
Value I get while debugging the workflow

Kind Regards

Priyanka Cecilia


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings