Anonymous_User Absent Member.
Absent Member.
139 views

JSON REST ecmascriptObject


Hi,

This is my first attempt at using the Rest activity in a workflow.
The basic idea is to automaticly start the workflow when a new user is
created or changed and have certain attributes sent to an external web
sever via REST.

I read the documentation at http://tinyurl.com/krfehto and fount out
that the ScriptVault.JSON.stringify(ecmascriptObject) is probably the
best way to go about this.

My Json will look something like this:

> [
> {
> userid: 'joagan',
> sn: 'Ganse'
> givenname: 'Joakim'
> }
> ]


userid is unique and there can be other attributes as well.

Now to the question.
How do I construct the ecmascriptObject from the fields in the workflow
form?

Any inputs are welcome.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=50971

Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: JSON REST ecmascriptObject


I think I am just plan stupid here.
It should be to just crate a form with the correct desired fields, map
those out and use the object it creates.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=50971

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.