I have a bunch of CDS options sets I am trying to set correctly in a flow based on data from SharePoint list.
Because of the number, I can't do a bunch of condition actions...
So on the field itself I am using if statements expressions to try to set the values. Which works fine, except when something doesn't have an option set value, then Flow yells at you because it wants an integer.
I have tried: null, empty, ''... the usual, but every time it wants an integer??
How do I write the if expression so that if it is blank to begin with and I dont have an update for it, leave it blank?
Here's my basic structure for these if statements
if(equals(items('Apply_to_each_3')?['new_lossoptions'],null),if(equals(items('Apply_to_each')?['LossOptions'],'Pricing'),100000000,if(equals(items('Apply_to_each')?['LossOptions'],'Incumbent'),100000001,if(equals(items('Apply_to_each')?['LossOptions'],'Lacking Capabilities'),100000003,if(equals(items('Apply_to_each')?['LossOptions'],'Lacking Relationship with Key Decision Makers'),100000004,if(equals(items('Apply_to_each')?['LossOptions'],'Staff Aug'),100000002,if(equals(items('Apply_to_each')?['LossOptions'],'Offsite or Offshore Requirements'),100000005,if(equals(items('Apply_to_each')?['LossOptions'],'COVID-19'),100000006,null))))))),items('Apply_to_each_3')?['new_lossoptions'])
Thanks,
Terry