UBAQ with REST: Company column required?

I have an updateable BAQ that I am calling from the REST API. In the UBAQ, I have the Company column set to mandatory and that it defaults to the constant CompanyID.

I can PATCH to create a new record in the table
{
“UD101_Key1”: “TestKey2”
}
without defining the company column in my JSON.
In the database, it creates a record with no company:

image

Shouldn’t the company default to what I’ve defined in the BAQ?

That’s likely a bug, but yes it should. The code behind probably takes the value from the JSON which is blank.

Ah makes sense. I see that if I GetNew it will return the Company defaulted in the BAQ. I wonder if that’s how they want to handle that GetNew>Modify Data>Patch

Meh… you shouldn’t have to. Just send it in with your patch

1 Like

i think, you have to write the complete row, there no way UBAQ can find it during PATCH.

1 Like