Sync one single record in a REcord Type from a Process Model
I have a Record Type with this "Sync Expression":
if(
a!isNullOrEmpty(ri!idRecord),
{},
a!queryRecordType(
recordType: 'recordType!{5608cfad-fc67-4a81-93b5-722c9b55f2c5}MIN Prueba API',
filters: a!queryFilter(
field: 'recordType!{5608cfad-fc67-4a81-93b5-722c9b55f2c5}MIN Prueba API.fields.{af91da05-b274-48ee-b4f1-c7332fac38ff}id',
operator: "=",
value: ri!idRecord
),
pagingInfo: a!pagingInfo(1, 1)
).data
)
,where idRecord is an Integer rule input. When I test the expression it works properly:
- List of MIN Prueba API - 1 item
-
MIN Prueba API
- id 3(Number (Integer))
- title "Powder Canister"(Text)
- category "beauty"(Text)
- discountPercentage 18.14(Number (Decimal))
- price 14.99(Number (Decimal))
- rating 3.82(Number (Decimal))
- stock 59(Number (Integer)
- id 3(Number (Integer))
-
MIN Prueba API
I've created a process model with a smart record synchronization service. I'm passing a fixed idRecord to retrieve the record, but an error occurs: An error occurred while syncing record type [name=MIN Prueba API]. Details: Unable to sync due to an error in the sync expression. (APNX-1-4521-040)
When I check the process variables I think everything is OK because I pass the idRecord correctly:
Name: idRecord
Type: Number (integer)
Multiple: No
Value: 2
Do know what is happening and how can I fix the problem?
Thanks!
