
EricP.72813 (Customer) asked a question.
I've noticed that when I call Okta - Update User in Workflows to do a "partial" update, if I leave a field blank in the update, it doesn't blank it in Okta. Instead, it just leaves whatever content is already there.
For example, I'm using a workflow to update an address from a location code and a lookup table. Sometimes Address Line 2 has content in the lookup table, but sometimes it's blank . When it's blank, the original content for that field remains, while the other fields get the new address info... leading to a rather confusing and invalid address.
Is there a way of setting a single field to blank or null when doing a "partial" update?

I've found a way to null specific attributes in Workflows. Use the Custom API Action. Set request type to "POST". Compose text for "Relative URL" to be "/api/v1/users/<OktaID>", replacing <OktaID> with your input variable. Compose text or create an object for "Body" with the profile attributes you want to blank. The text would look something like this:
{ "profile" : { "attribute1" : null, "attribute2" : null } }
I really think the Update User function should pass null if an input is blank, but I guess Okta chose to omit that attribute instead, leaving the existing value... not sure why that makes sense to them.