Incident SLA through Rest API - api

there is one way to extract sla from a service now rest api call?
I need to extract from service now all the sla related to my incident. Is there one way to do that?

SLA data is stored in the task_sla table. You an use the Table API. Execute a GET on the table task_sla using sysparm_query=task=xxx where xxx is the sys_id of your Incident.

Related

Workday Incremental Extract

I am using Informatica Intelligent Cloud Services (IICS) to retrieve Contracts Information(Get_Customer_Contracts). Is it possible to incrementally extract data from Workday using API. Example : Contracts which have been created or updated in the last one day.
Any help is appreciated. Thank you.
As per what I see in the API documentation there is only a way to get contracts between 2 effective dates and no way to extract based on Creation date.
API Documentation : https://community.workday.com/sites/default/files/file-hosting/productionapi/Revenue_Management/v39.0/samples/Get_Customer_Contracts_Request.xml
Unfortunately if you must extract based on creation date, you need to use a RAAS report.

How to design API for reports

Hi and thanks in advance for ideas.
I have an api endpoint to design which is a report of tickets.
The report itself needs to accept up to 8-10 parameters like start / end date
or start / end product group.
The report then is fairly simple ( Van number, product, quantity ) group by van & product
The API endpoint should represent a resource ( so it would be tickets ) however that would force the API consumer ( a webpage in this scenario ) to calculate the total quantity on frontend.
So I wonder what is the correct pattern here?
Is creating an endpoint for such report wrong way of doing it?
Should I create /tickets/vanloading?startDate=2021-06-28&endDate=.........
What is general approach for different kind of reports when implementing API when there is plenty of data to aggregate ?
Thank you.

In Quickbooks Api retrieving a aggreate view of the transactionqueryrq

I am using the QuickBooks Api to request transaction data from a QB database. However due to the number of transactions, it takes a long time for the request to come back. Is there a way of requesting a summarise view in the XML, i.e instead of getting data on TxnID level, I can get it to just aggregated the 'amount' by accounts.
Thanks in advance
Is there a way of requesting a summarise view in the XML, i.e instead of getting data on TxnID level, I can get it to just aggregated the 'amount' by accounts.
Using a TransactionQueryRq? No.
If you're trying to get summary data, you should look into the reporting features of the SDK/qbXML instead -- they are likely closer to what you need.

Yodlee - how to get only new transactions

I am looking for a way to get only 'new' transactions from specific account item. I.e. only transactions that was posted to account after I made previous transactions fetch/search.
For example I have the following scenario:
I have add item to consumer. Lets say consumer have 1 account item named 'BankAccount1'.
I fetch/search ALL transactions for some BankAccount1 and store transactions locally.
Now I need a way to get only new transactions on periodic basis. I.e. only transactions that was posted to 'BankAccount1' after previous fetch/search call. Is it possible to do this or I need to get all transactions every time and just skip transactions with Id which already present locally? If transaction Id is unique and incremental (did they?) maybe its possible to save last fetched transaction Id, and on next time get only transactions with Id > prevFetchId (what API to use if its possible)?
p.s.
I am using container based approach REST API.
As per your question, I can infer that you are going to store transactions locally in your DB. In that case Yodlee recommend to use Procedural Data Extracts, using which you can keep your DB in sync with Yodlee Cloud. You can find more details about it here.
Yodlee recommends you to pass date range in the executeUserSearchRequest API to get the transactions for any specific duration,as getting only new transactions may cause some issues. This is why Yodlee recommends to have few days of overlap, this will help you in not missing any transaction.
Transaction ID would be unique but it may not be incremental.

How can I add test data to retrieve stocks transactions?

I'm testing the
https://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference/executeUserSearchRequest
endpoint using the sandbox. And I'm able to retrieve all the data; but for the project that I'm working on I need to test mostly with "stocks" data; when I set the data type to "stocks" I get 0 results.
How can I test that? or, maybe, how can I add stocks test data?
Thanks,
JD
For getting stocks transaction you need to have a investment account aggregated which have stocks and transactions. You could use the Dummy Account Generator(DAG) tool to test this. Here is the link about how to use DAG.
Once you create a DAG catalog you can use it as it is or even edit the data or number of transactions present in it(in form of XML) and upload the edited XML to the DAG and then add the site within your Test user account in sandbox.
Using executeUserSearchRequest API you will get the transactions either for all containers or specifically for stocks. But you need to have a test account added to retrieve the transactions.