Problem with Nested double quote and single quote command #730
Unanswered
sorrentinov
asked this question in
Help needed
Replies: 1 comment
-
I didn't get it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
I have two variables:
const sharePointSite = "https://mysharepoint.com/sites/MySite"
const sharePointListName = "MyList"
I would in zx execute this command (using m65 cli) that return the existing list in the site filtered by Title:
$
m365 spo list list --webUrl ${sharePointSite} --properties Id,Title --filter "Title eq $sharePointListName" --output text
I've tried on bash and it works fine:
m365 spo list list --webUrl https://mysharepoint.com/sites/MySite --properties Id,Title --filter "Title eq 'MyList'" --output text
Actual Behavior
I receive this error: The expression "Title eq $'MyList'" is not valid.
Steps to Reproduce the Problem
Specifications
Beta Was this translation helpful? Give feedback.
All reactions