[API-712] API Integration for Splunk application with simPro

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
james
Posts: 4
Joined: Mon Oct 28, 2019 5:52 am

[API-712] API Integration for Splunk application with simPro

Post by james » Mon Oct 28, 2019 6:05 am

Hi,
I am trying to integrate Splunk with simPro. While I make an API call to simPro, I am getting only a request ID.
Could anyone help me out, how to make an API call to fetch the data from simPro. We have several Open Jobs in simPro, as per our business requirement I have to pull all the data from simPro to Splunk, which are related to the Job and Task like, Name of Job and associated Tasks. Creation date, due date, Completed date, etc..

Thank you,
James Kurian
Jupiter-Andrew
Posts: 5
Joined: Thu Oct 24, 2019 7:45 pm

Re: API Integration for Splunk application with simPro

Post by Jupiter-Andrew » Tue Oct 29, 2019 4:00 pm

Please post an example of your API call URL, what data you're expecting to retrieve, and what you actually are getting. Can't help you without that basic info.
james
Posts: 4
Joined: Mon Oct 28, 2019 5:52 am

Re: API Integration for Splunk application with simPro

Post by james » Thu Oct 31, 2019 12:03 am

Hi,

Thank you Andrew, for your response.
Somehow we manged to get the data however we have some issue with fields.
This is the api url i am calling is this https://.simprosuite.com/api/v1.0/companies/{c}/jobs/{job}/timelines/ the API reference is here http://developer.simprogroup.com/apidoc ... 4962cdec4a

The API response appears to be malformed as it has <BR /> tags in it which is html line break rather than the Json we are expecting according to the api reference, it is also missing the project due date (called start date in simpro see picture).

[{"Type":"Task","Message":"Issued task 249 - Tx Availability to Andrew<br \/>Issued task 251 - MS006 - Testing to Andrew<br \/>Issued task 250 - Site Integration to Andrew<br \/>Issued task 252 - Site On Air to Andrew<br \/>Issued task 247 - Tx Design to Andrew<br \/>Issued task 248 - Drake Booking to Andrew<br \/>Issued task 246 - Tx Modelling to Andrew<br \/>Issued task 245 - AAA Achievement to Andrew<br \/>Issued task 241 - Design Submit to Andrew<br \/>Issued task 243 - Property Planning to Andrew<br \/>Issued task 242 - Design Complete to Andrew<br \/>Issued task 244 - ACIF\/DA Planning to Andrew<br \/>Issued task 240 - Site Design Visit to Andrew","Staff":{"ID":17,"Name":"James Kurian","Type":"employee","TypeId":17},"Date":"2019-10-28 16:07:42+11"},{"Type":"General Message","Message":"Job created.","Staff":{"ID":17,"Name":"James Kurian","Type":"employee","TypeId":17},"Date":"2019-10-28 15:50:03.043106+11"},{"Type":"Task","Message":"Completed task 240 - Site Design Visit","Staff":{"ID":32,"Name":"Andrew","Type":"employee","TypeId":32},"Date":"2019-09-13 16:07:40"}
Attachments
image002.png
image002.png (118.34 KiB) Viewed 4811 times
Last edited by james on Thu Oct 31, 2019 7:42 am, edited 1 time in total.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: API Integration for Splunk application with simPro

Post by Muqeet » Thu Oct 31, 2019 2:13 am

Hi James,

Job timelines is a list of brief job details or you can call them events. Timeline can have different type of messages (schedule, customer notes, purchase order, job card, invoice, task, etc).

There seems to be an issue with task within timelines endpoint. You should be able to see the list of task separately and not just separated by a line break. We are working on a fix as we speak.

Start date mentioned in the attachment can be retrieved from timeline Type 'General Message', or you can just get that from job endpoint's 'DateIssued' field. Similarly due date 'DueDate' can also be retrieved from job's endpoint.

In case you are referring to due date of task, that can be obtained from the job task endpoint. Please refer to the following documentation link.
http://developer.simprogroup.com/apidoc ... 52bb80d5d9

Thanks
Muqeet
Muqeet
API Developer | simPRO Software Group
Post Reply