Flow Action error(cannot read property "id" from undefined,Detail: Cannot read property "id")

Kri
Tera Guru

I'm getting the flow action error while running and also I can't able to publish the flow

Kri_0-1756986471099.png

 

Kri_1-1756986490741.png



I filled the details for the required field though I get this error. I can't able to debug where it goes wrong. Could someone help?

Kri_2-1756986574690.png



Kri_3-1756986602200.pngKri_4-1756986627368.png



Kri_5-1756986686756.png



Kri_6-1756986748673.png



Kri_7-1756986769963.png



Kri_8-1756986791899.pngKri_9-1756986809348.pngKri_10-1756986827373.png

 




1 ACCEPTED SOLUTION

@Kri 

both name and description are string type.

Why are you storing JSON string in it from script step?

1st script step is not required.

Simply use the name and description directly from input in REST Step.

Seems since you are converting string to JSON string and then using REST Step body, it's failing with 400.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

G Ponsekar
Mega Guru

@Kri ,

 

It means you are not receiving the correct response body to parse idea.id

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

Did you notice any error from the flow action steps?

Ankur Bawiskar
Tera Patron
Tera Patron

@Kri 

It's possibly failing because of script step.

All other steps look good.

Did you check what came in response body?

Did you check that JSON has the key which you are trying to grab? seems the JSON object doesn't have id key within idea

try to add gs.info()

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

it says error occurred while parsing request parameters

Kri_0-1756989585882.png