Business Rule `current` has no data

vladk
Giga Contributor

Hello.

I have a business rule that send data to the endpoint.

Here's my configuration:

1.PNG

2.PNG

3.PNG

Sure, I have my own Endpoint name and method name.

Here's data that I created via REST API Explorer:

4.PNG

And here's what I've got on the endpoint:

5.PNG

As you can see, all the fields are empty. The only thing I have is something like sys_package. It's the same all the time.

It looks like it just lets me know that I have create a record, but it doesn't send any details about this record in this table.

So, what I have to do to achieve data?

P.S.
I'm not sure about is it OK to post some IDs here, so don't try to hack me or something.

1 ACCEPTED SOLUTION

Chris M3
Tera Guru

The issue is with JSON.stringify.   It does not generate what you are expecting, simply stating, you can not use that method to turn a GlideRecord into a JSON object with all the values.



You'll need to find some other method, such as looping through all of the elements and adding them as properties to a new object, and then turning it into JSON.


View solution in original post

7 REPLIES 7

Chris M3
Tera Guru

The issue is with JSON.stringify.   It does not generate what you are expecting, simply stating, you can not use that method to turn a GlideRecord into a JSON object with all the values.



You'll need to find some other method, such as looping through all of the elements and adding them as properties to a new object, and then turning it into JSON.


vladk
Giga Contributor

Yeah, I tried without JSON.stringify and everything is OK.


shaik_chan_1
Tera Contributor

Haii Everyone,

I'm unable to find methods when i enter current.   and same issue for previous also

can you tell to activate or reobtain them. 

please share the solution.