I noticed a behaviour , just curious to understand more details if anybody knows
Using API backed record for read only grid,
case1:- For data: a!recorddata() was used and action was configured as below
a!recordActionField( actions:a!recordActionItem( action: 'recordType!myRecord.actions.myAction', identifier: fv!identifier
case2:- For data: a!queryrecordtype() was used and action was configured as below
a!recordActionField( actions:a!recordActionItem( action: 'recordType!myRecord.actions.myAction', identifier: fv!row[recordtype!recordname.field.primarykeyfieldname]
if I use identifier: fv!identifier in second case its throws error saying record was either deleted or I do not have enough permission to perform action. So i have to use primary key field of record as identifier.
Discussion posts and replies are publicly visible
I checked the documentation. Looking for fv!identifier, I do not see any reference of using it inside the gridColumns.
Did you try to use a textField to display and validate the value of fv!identifier in the grid?
No, I was not using fv!identifier anywhere else in grid. And only record action was called in a separate column without any additional details configured- just the code i mentioned above at start was present in separate column to trigger the record action
I did a quick test, and using fv!identifier just works like expected. This is for a normal DB backed synced record.
So, I suggest to add a simple text field showing fv!identifier to find out what the actual value is. As a first step in debugging the issue.
I did debugging as you said,
1. fv!identifier for a!recorddata returns primary key field value - which is a text value.
2. fv!identifier for a!queryrecordtype returns integer i.e unsorted index position of the record which API response is returning.