Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
6 subscribers
Views
4352 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
How to access new ID generated by database
christofs
over 8 years ago
Hi all,
I am using "Write to Data Store Entity" smart service.
1. I am not passing the whole CDT but the single fields.
2. The id is left blank, to create a new DB entry.
3. How can I access the ID (Number/Integer) in Output tab (Custom Output)?
Please see the atteched screenshots for further assistance.
Kind regards,
Chris
OriginalPostID-261331
Discussion posts and replies are publicly visible
0
christofs
over 8 years ago
Please see Inputs as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 8 years ago
Have you tried it without the ".data" in your output expression? I'd have to double-check, but off the top of my head i think that might be extraneous.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ram
Certified Lead Developer
over 8 years ago
Hi Christof,
As suggested by mschmitt I tried without data it gave me the id. I am attaching the screenshot for your reference. hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Puspendu Pal
over 8 years ago
data is used in case of "Multiple Write to Data Store Entity". In case of "Write to Data Store Entity" the cdt fields can be directly accessed from the ac!storedValues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
christofs
over 8 years ago
Hi guys, didn't know it was that easy! I think I tried this before, hmmm. Anyway, you helped me a lot and fast! Thanks to you
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel