Hi all,
I am trying to use record-view in an embedded interface. The syntax for the same is specified as :
<appian-record-view recordTypeUrlStub="U1TzGg" recordIdentifier="112" recordViewUrlStub="summary"></appian-record-view>
What does the attribute "recordIdentifier" specify and how to obtain its value? Any help would be much appreciated.
Thank you,
Ishani
Discussion posts and replies are publicly visible
When you create a record type, you must define a source that has an identifier. However, it varies depending on the source type:
In this scenario, you need to use the correct ID for the source type. For example, suppose you use an entity-backed record that queries data from a database table called "Cases" and that table has a primary key field called "caseId". If you use a value for caseId in the "recordIdentfier" above, Appian will display the corresponding data for the case that matches that ID.
Thank you so much for the answer. I tried this and it is showing error something like this : "The record view does not exist or you do not have permission to view it"
I have checked the security settings and I have administrator privileges for the record that I want to embedd. Can you suggest what could be something that I could be missing.
Hi,
can you please check, you can add cross-origin or not.
Regards,
Bhanu
Yes, I have already added cross-origin. I am able to embed other process models, just not record views
Does it display in Appian without embedding? That error message is not specific to embedded, it seems to be an issue with the record configuration. My guess is that the record ID you provided is either not a valid ID or you have added a default filter that excludes it.
The easiest way to find out what's happening is to go to the record list view in Tempo. If you go to the record list, do you see any records or does it show an error? If you see records in the list, can you select a record and display its record view?
Hi Peter,
I am also facing similar issue "The record view does not exist or you do not have permission to view it". I also checked Security, Also Record View works Fine in Appian but in Embedded giving above error. I also added CORS, still facing same error.
Are you certain it is the exact same configuration in Appian and in Embedded? That error is not an embedded-specific error, so I would guess there is still an issue with your syntax.
How did you test viewing the record view in Appian?
I am certain. I have checked in Tempo as well as directly using URL as well and record List and summary view display correctly. I have done exact same configuration as mention in Appian Embedded Inteface documentation also added CORS setting too. I Embedded Appian Task View and its working fine in Embedded but when I used same with Record View , its not working.
Hmmm - I'm sorry, I'm not sure what the issue is then. You could try opening a support ticket if it still isn't working.