Need to set null lookup value through the Power Pages web API, and your copilot does not know how to do it, yet?


To set a lookup column to null using Power Pages web API, you need to use a specific syntax. The usual syntax for preparing the data object for the API call won't work for null values. Instead, use the syntax "data["ita_TableName"] = null;". Here's an example of how the code would look: if(value){ data["[email protected]"] = "/ita_tablenames(" + value + ")"; } else{ data["ita_TableName"] = null; }


Article 7m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time