Skip to main content

Hi,

I am currently testing a new API connection.

One of values is passed as an attribute and not as a child element.

     <content>
            <function controlid="12345">
                <create>

 

Can anyone tell me how I can replicate this in the XML Mapping.

 

Regards

Ady

Hi Ady,

You could possibly use XPath to extract the data, but with that small snippit on data I can’t say for sure.

Can you either give a full breakdown of the map and function here or send the data via email please so I can look at it more in detail?

Kindest regards,

 

Paul


Hi Paul,

 

This is a link to the call I am attempting.

https://developer.intacct.com/web-services/your-first-api-calls/#get-an-api-session

 

In the image below it’s line 20 I am struggling to replicate.

In FSM the XML Map looks like;

With the ‘80’ sequence having the XML Template set to this for the function.

I hope this helps.

 

Ady


Thanks Ady,

Is the GUID a value you already have in your DB from a previous integration call or are you attempting to retrieve the GUID in this transaction?

 

Kindest regards,

 

Paul


Hi Paul,

 

I believe the GUID is going to be generated by FSM using the {guid} variable and we’ll pass that as part of the map.

 

Ady


@Paul Drennan 

Don’t suppose you had anymore more thoughts on the above?

I have been trying to set the value using the guid variable in the XML Template as this worked for the API Session function.

 

Unfortunately the sequence is being bypassed when checking the integration log.

<content><function><getAPISession /></function></content>.

 

Ady


Hi Ady,

I have managed to create a mock up on my local machine as per below:
 


And the output this gives is:
 


This is on my FSM6U24 system but the above should work in FSM5.7 as well.

Let ​me know if the above works for you as well please.

Kindest regards,

​​​​​​​Paul​​​​​​


Paul,

 

That fantastic, thank you.

The XML is now posting the values in the format I need.

 

Regards


Ady


Reply