SAP Knowledge Base Article - Public

3487962 - Not able to create a Task with Teams in Calendar API

Symptom

You are able to create Composite Task with User IDs as ‘assignees’ and ‘reviewer’, but an error arise when you try to use Teams in the cited properties. Below error displays:

“You’ve specified one or more users that are not valid. Please verify that the user IDs are valid, and try again.”

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP ANALYTICS CLOUD 1.0

Reproducing the Issue

  1. You check and get the Team ID from Calendar ->Create Composite Task -> Add Assignees ->Select a team and check the Team ID. 
  2. Create a Story and add a Button in it.
  3. For "onClick" event, you add some test script as below:

"

var newTask = CalendarIntegration.createCompositeTask({

                                name: "Test task",

                                startDate: new Date( Date.now() + 10000000),

                                endDate: new Date(2024,6,1),

                                description: "Test teams assignment",

                                assignees: [Application.getUserInfo().id],

                                workFiles: [{

                                                id: Application.getInfo().id,

                                                type: CalendarTaskWorkFileType.Story,

                                                }],

                                reviewers: {

                                                "1": ["TEAM:t.K:CalendarAPI"]

                                                }

                                },{

                                autoActivate: false

                });

 

if (newTask !== undefined) {

                console.log(newTask);

                Application.showMessage(ApplicationMessageType.Success, "Tasks have been created successfully.");

} else {

                Application.showMessage(ApplicationMessageType.Error, "Tasks creation failed.");

}

"

      5.Triggering the Button in the View Mode of the Story you get the error “You’ve specified one or more users that are not valid. Please verify that the user IDs are valid, and try again.”

Cause

You get the wrong Team ID.

Resolution

Please don't get Team ID from "Composite task".  Please get it from Security ->Teams , as the screenshots below:

and use it as below:

Keywords

KBA , LOD-ANA-UNS-DVP , Unified Story Developer Issues , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud all versions

Attachments

Pasted image.png
Pasted image.png
Pasted image.png
Pasted image.png