Tutorials
Errors Creating Priority Orders-> Writing in monday.com Field
12 min
in this tutorial, learn how to automate the writing specific errors in a dedicated field in monday com when getting workflow errors of creating an orders in priority prerequisites before you begin, ensure the following connections are established connection between engini and monday learn how to https //app archbee com/public/preview ixqqblwfxopjg0nave78y/preview td33fdcyfx3ign84qa0pd#79cmn connection between engini and priority learn how to initialize variable to get started, let’s initialize a variable that will later hold the error’s title of error in priority choose “initialize variable” action of engini name field click on the empty field and choose from the tooltip a name for the variable for example “errors” type field choose from the drop down the “array” option click on the “next step” button parse json / xml next, add a new activity and choose the “parse json/xml” activity of engini click on the empty field and the tooltip will pop up showing contents from the previous activities which you can choose to parse press on the “functions” button located on the topbar, then go to “workflow functions” and choose the “errors()” function press the blue phrase “load json/xml sample to generate structure” and a window will open paste this json sample payload and press “save” \[ { "title" "failed parsing definition", "message" "fieldname input , value ##1 test error can't resolve field 1 test", "stepno" 9, "application" "engini", "activityname" "construct", "looppath" \[ { "parentstep" 8, "stepiteration" 1 } ], "handled" false }, { "title" "failed parsing definition", "message" "fieldname input , value ##1 test error can't resolve field 1 test", "stepno" 9, "application" "engini", "activityname" "construct", "looppath" \[ { "parentstep" 8, "stepiteration" 2 } ], "handled" false } ] for each loop add a new activity and choose the “for each loop” activity of engini click on the empty field and the tooltip will pop up showing contents from the previous activities which you can choose in the pop up window that appears, click on “dynamic content” in the top toolbar, then navigate to the “parse json/xml” property and choose the “jsonobject\[]” value append to array variable now, inside “for each loop” block, add a new activity and choose the “append to array variable” activity of engini click on the drop down and choose the name you gave the variable you initialize for example “errors” click on the empty field next to the “value” and the tooltip will pop up showing contents from the previous activities in the popped up tooltip, click on “dynamic content” in the top of the tooltip, then navigate to the “parse json/xml” property and choose the “jsonobject\[]” value compose string add a new activity and choose the “compose string” activity of engini click on the empty field and the tooltip will pop up showing contents from the previous activities which you can choose press on the “functions” button located on the top of the tooltip then go to “text functions” and choose the “split()” function add function to the first place inside the “split” function click on the first place inside the “split” function and the tooltip will pop up showing contents from the previous activities which you can choose press on the “functions” button located on the top of the tooltip then go to “text functions” and choose the “split()” function click on the empty place ( ) inside the “first” function and the tooltip will pop up showing contents from the previous activities which you can choose press on the “dynamic content” located on the topof the tooltip, then go to “variable – errors” activity and choose the “errors\[]” value add phrase to the second place inside the “split” function click on the second place inside the “split” function and the tooltip will pop up showing contents from the previous activities which you can choose close the tooltip and write manually the value “ “ update item add a new activity and choose the “update item” activity of monday com fill the “board” and “item id” fields acording to your needs fields click on the drop down and choose the field you want to update for example “error message” click on the empty field and the tooltip will pop up showing contents from the previous activities press on the “functions” button located on the topbar, then go to “collection functions” and choose the “getarrayelement()” function add value to the first place inside the “getarrayelement” function click on the first place inside the “getarrayelement” function and the tooltip will pop up showing contents from the previous activities which you can choose press on the “dynamic content” located on the top of the tooltip, then go to “compose string” activity and choose the “output” value add value to the second place inside the “getarrayelement” function click on the second place inside the “getarrayelement” function and the tooltip will pop up showing contents from the previous activities which you can choose close the tooltip and write manually the number of the error message place for example 1