Failed to Add Secret(password) for the new created Application

Open
#1,999 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Reproduce the sequence using graphClient.api('/applications').post(creationParameters), then the /applications/{id}/addPassword request described in the issue. Inspect how the TypeScript SDK builds these requests and compare the behavior for a newly created application; done means the password can be added without the reported resource error.

Written by the indexing model from the issue text.

Description

status:waiting-for-triage type:bug
Describe the bug

When to add Password for the new created Application, we always got error like "Resource 'xxxx-xxxxx-xxxxx-xxxxx' does not exist or one of its queried reference-property objects are not present." We have used the way to do such operation for many years, but it does not work.

Expected behavior

Is it a bug? If yes, how to fix it?

How to reproduce
  1. Create one Application via await graphClient.api('/applications').post(creationParameters)
  2. Add Secret for the Application via await graphClient.api(`/applications/${createApplicationResponse.id}/addPassword`).post({ passwordCredential: addPasswordContent })
SDK Version

3.0.7

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.