Flow variables are null when trying to submit a catalog item request

JakeBaynes
Tera Contributor

Hi,

 

Flow setup:

 

  • Trigger: Inbound email
  • Custom Action: Parse Email Body Text (downloaded from Share on ServiceNow site)
    • Produces output of type Name-Value Pairs
    • Data picker now has an output variable called Email Variables

JakeBaynes_2-1762537956185.png

 

  • Set Flow Variables: 
    • Using the Email Variables output and the Get Item from Name/Values Transform function, I am setting each Flow Variable value
    • I had to set each to type String because types like Reference won't allow a Key Value pair type
    •  JakeBaynes_0-1762537884980.png

       

  • Log
    • I'm logging each of the Flow Variables to make sure that the values are present
    • I can even see the values are there using the Execution log of the flow
  • Submit Catalog Item Request (here is where the problem arises)
    • When I try to set the Catalog Item fields/variables using the Flow Variables, the Execution log shows that each variable is null in the Runtime Values
  • JakeBaynes_3-1762538140413.png

     

 

Can anyone shed some light on why these values are present when logging them and in the Execution Runtime Values for both the Set Flow Variables step and the Log step, but then they are all of the sudden empty/null when trying to use them in the Submit Catalog Item Request action. I wondered if the data types was the issue, but you can see in the screenshot of the runtime values above, that even String type catalog item variables are not getting the value.

 

The errors were pointing to fields that are mandatory, so I tried making all of them not mandatory and then the flow would submit the catalog item, but the variables on the RITM are mostly missing, however some of them are present even though they show to be null in the execution logs.  None of this is making sense to me.

 

JakeBaynes_4-1762538218850.png

 

 

I appreciate any incite.

0 REPLIES 0