Hi All,
I get this response from one of the integration,
{ "media_id": 710511363345354753, "media_id_string": "710511363345354753", "size": 11065, "expires_after_secs": 86400, "image": { "image_type": "image/jpeg", "w": 800, "h": 320 } }
once get the response , i have to use the media_id value for passing as a request to another api. When i get that media_id, it is coming like infinity value(∞).
Can you please guide how can I get that value.
Regards,
Bhanu
Discussion posts and replies are publicly visible
instead of using media_id use media_id_string and then convert string value to decimal
load( local!data: { "media_id": 710511363345354753, "media_id_string": "710511363345354753", "size": 11065, "expires_after_secs": 86400, "image": { "image_type": "image/jpeg", "w": 800, "h": 320 } }, todecimal( local!data.media_id_string ))
when I used todecimal to media_id_string, output coming like "7.105114e+17"
when i used tostring(local!data.media_id_string), but value is coming like "710511363345354753" . when I pass this value to another api as a request .the value is {id:"710511363345354753"} like this. so , i got a error invalid id..when i pass only value without quote ..now it is working fine..
I tired to remove the quote(""), in this value..it is not coming..can you please help me in this atleast.
pass value like 7.105114e+17
even it is not working. {"errors":[{"code":44,"message":"media_ids parameter is invalid."}]}
If number integer is more that nine digits then it will show as (∞) in appian ,so we have converted it in to decimal,by passing decimal also you are not getting result.
it is easy if the parameter for api is "media_id_string"
media_id_string is not a parameter for api