Expand my Community achievements bar.

Do you have questions about the migration to Adobe Business Platform? Our experts will be answering your questions starting TOMORROW at 8 AM PST!
SOLVED

Automating Workfront Request Approval Workflows error 422

Avatar

Level 1

I've been trying to build an automated approval workflow in Fusion by following the "Automating Workfront Request Approval Workflows" chapter within the Adobe Workfront Fusion Cookbook but have stumbled upon an error which I can't get beyond. I'm pretty new to Fusion so I may be making a rookie error.

 

I've followed the instructions as best as I can and have build the workflow as closely to the example as possible.

Darsh_0-1692788326844.png

 

When I get to the Custom API Call (POST: Create Approval Process), I'm getting the following error: The operation failed with an error. [422] APIModel V16_0 does not support field shouldCreate (ApprovalPath)

 

This is the overall output:

Darsh_1-1692788524332.png

 

This is the body:

  • {"name":"Fusion Test_64df7da80032fe753f9eb4a3bcacbc7c","objCode":"ARVPRC","approvalPaths":[{"name":"ApprovalPath","objCode":"ARVPTH","shouldCreate":false,"targetStatus":"INP","approvalSteps":[{"name":"Head of Tech","objCode":"ARVSTP","approvalType":null,"stepApprovers":[{"userID":"605a06fe007acd798aaebadef50895a0"},{"userID":"633d90620004540cf20c730878d45f1c"},{"userID":"633d8e1e004eb0e3e993d22fa15497e3"}],"sequenceNumber":null}],"rejectedStatus":"REJ"}],"approvalObjCode":"OPTASK"}

 

What am I getting wrong here?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The "shouldCreate" key isn't a thing. Take that part out.

Edit: IIRC you also need to provide a value in the approvalType field, and I don't think sequenceNumber should be sent either.

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

The "shouldCreate" key isn't a thing. Take that part out.

Edit: IIRC you also need to provide a value in the approvalType field, and I don't think sequenceNumber should be sent either.

Avatar

Level 1

Thanks for the response.

 

I've removed the "shouldCreate" and "sequenceNumber" elements from the JSON module but still keep getting the "The operation failed with an error. [422] APIModel V16_0 does not support field shouldCreate (ApprovalPath)" error (even after replacing the surrounding modules).

 

I'll have a go at creating the JSON again from scratch and see if I have any luck.

Avatar

Level 1

After some more playing around, I finally managed to get the workflow to work. Thanks so much for your help!

Avatar

Level 7

Hi @Darsh - Can you share the blueprint of the scenario please? I'm creating something similar. Thanks!