0 votes

Hi all,

I'm wondering if the datasynchro function GetLookupKeyFromValue is availible in DataSynchroRemote.

Unfortunatly the documentation on DataSynchroRemote is very little.

asked in Developers by (135 points)

1 Answer

0 votes

Mark,

Have been experiencing problems ?
I've been testing this for you and I seem to get incorrect results from the function when launched from the DataSynchroRemote.

Database.GetLookupKeyFromValue(22000, "NATURE", "Administrative");       

Database.GetLookupKeyFromValue(10000, 'COUNTRY', 'BELGIUM'))

For exemple these 2 keep giving results that have nothing to do with the real value.

For some reason it keeps incrementing the value :

[14:26:51.208] Key Country = 1350
[14:26:51.246] Test3 = 1355
[14:26:51.247] Key Country = 1357
[14:26:51.286] Test3 = 1362
[14:26:51.287] Key Country = 1364
[14:26:51.326] Test3 = 1369
[14:26:51.327] Key Country = 1371
[14:26:51.367] Test3 = 1376
[14:26:51.368] Key Country = 1378
[14:26:51.409] Test3 = 1383
[14:26:51.410] Key Country = 1385
[14:26:51.448] Test3 = 1390
[14:26:51.449] Key Country = 1392
[14:26:51.488] Test3 = 1397
[14:26:51.489] Key Country = 1399

So it might be possible that this function doesn't work like it should in this context.
Maybe someone has similar experiences ?

answered by (618 points)
1,231 questions
1,500 answers
1,835 comments
328 users