on 2023 May 30 8:57 AM
Hi SAP Community,
I have a requirement in SAP Analytics Cloud where I need to retrieve the current status of multiple calendar tasks within an analytic application using scripting.
Is there any other way or function available in SAP Analytics Cloud scripting that allows me to retrieve the status of multiple calendar tasks in an analytic application?
I am wondering if there is an id for each calendar task just like the unique id's for story and analytic application
Any guidance or sample code would be highly appreciated.
Request clarification before answering.
rijin_baby
Have you tried the below.
Use the getCalendarTaskById() API
If you want to retrieve information about a specific task, you can use the getCalendarTaskById() API. Simply pass the eventId from the query string in the URL The analytic application or story doesn't need to be opened by clicking a work file from the calendar task to use this API.
var tasks = CI_1.getRelatedTaskIds();
for (i=0;i<tasks.length;i++){
var task_id = CI_1.getCalendarTaskById(tasks[i]);
}
Hope this helps !!
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@nikhil_1486
I do have a questing regarding "Data Block Task"
var t3_block = CalendarIntegration_1.getCalendarTaskById("54B0368629DC0DC0E3285CC5E6F31B2E") ;
console.log(t3_block.getName());
This gives the following error
It appears that this error occurred due to a problem in the script you attempted to run. Check the script if possible.
Cannot read properties of undefined (reading 'getName')
TypeError: Cannot read properties of undefined (reading 'getName')
But the code works with all other types of calendar tasks. The issue is only with data block task
rijin_baby
I think the API's only support the below
general task
composite task
review task
User | Count |
---|---|
72 | |
30 | |
8 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.