Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
+4
person also asked this
people also asked this
Replies
24 replies
Answers
1 answer
Subscribers
9 subscribers
Views
9465 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am trying to tag a Record to a News post. I have used a record constant and a
tanmayareddyn241
over 8 years ago
I am trying to tag a Record to a News post. I have used a record constant and a id field for identifier. This is the expression I used "=a!toRecordIdentifier(cons!PCT_RECORDTYPE_PVA,pv!newPVA.id)". I have already made sure that id is passing correctly and also tested the rule in expression editor. It is working fine there but I don't see any record tags attached to New Post this node is created. Has any one encountered this issue before? Or Do any of know a way to correct this?
OriginalPostID-193994
OriginalPostID-193994
Discussion posts and replies are publicly visible
+1
Jonathan Katora
Appian Employee
over 8 years ago
What is the data source of the record? Process, Entity, or Expression? If it's entity, is newPVA.id the primary key of that RDBMS table? One more question, what is the value (in process) of pv!newPVA.id at the before it gets to the post event to feed smart service?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
tanmayareddyn241
over 8 years ago
Data source of the record is an entity. Yes, the newPVA.id is the primary key for that table. The value is obtained by passing the output from the write to DS to the id once an entry is made to the entity.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@tanmayareddy Would you please be able to let us know if you are experiencing this behaviour with basic user?
To the best of my knowledge, the record tagged to news event can't be visible if the user lacks security to Record. I guess you should be able to confirm this behaviour if you as a system administrator, is able to see record tag associated with the news event.
Else I would like to suggest to cast the value of identifier that is being passed as argument and this should resolve the issue for sure shot as per my knowledge.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jonathan Katora
Appian Employee
over 8 years ago
Thanks. That setup sounds correct then. Without seeing the process, the first thing that comes to mind then is security around the record. If I post views does not have access to the record type, the records tag won't show up in the post. Other thoughts would be a misspelled function, constant name, or data point.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tanmayareddyn241
over 8 years ago
@sikhivahans Even as a System Admin I can't see the record link. I also tried the casting the value of identifier that is being passed, that didn't work either.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tanmayareddyn241
over 8 years ago
@Jonathan Katora Already checked and tested the expression and there seems to be no problem in that, no spelling errors too.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 8 years ago
hi TanmayaReddy, Could you please try below expression once, This is same as the one you have provided but wanted to check once.
=a!toRecordIdentifier(recordType: cons!PCT_RECORDTYPE_PVA, identifier: {pv!newPVA.id})
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tanmayareddyn241
over 8 years ago
@narasimhaadityac Tried that. Didn't work. Still no record tag.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@tanmayareddyn Would you please be able to try either of them and let us know if there is any luck?
a!toRecordIdentifier(recordType: cons!PCT_RECORDTYPE_PVA, identifier: cast(101,pv!newPVA.id))
apply(a!toRecordIdentifier(cons!PCT_RECORDTYPE_PVA,_),pv!newPVA.id)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tanmayareddyn241
over 8 years ago
@sikhivahans Both of them didn't work. The second one is actually throwing out an error. No luck with them.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>