question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The value of the 'content' field

See original GitHub issue

{ "activityId": "cd3a8a78-d3c3-43ee-8b3e-5685c41810d8", "displayName": "Send HTTP Request", "name": "resName", "type": "SendHttpRequest", "properties": [ { "name": "Url", "value": "https://partnerdev-******/q" }, { "name": "Method", "value": "POST" }, { "name": "Content", "value": "System.Dynamic.ExpandoObject" }, { "name": "ContentType", "value": "application/json" }, { "name": "Authorization", "value": null }, { "name": "RequestHeaders", "value": {} }, { "name": "ReadContent", "value": true }, { "name": "SupportedStatusCodes", "value": [ 200 ] } ], "outcomes": [ "Done" ], "persistWorkflow": false, "saveWorkflowContext": false, "loadWorkflowContext": false }

The value of the ‘content’ field is ‘System.Dynamic.ExpandoObject’. why? ? ? Then I find the source code [ActivityInput(Hint = "The HTTP content to send along with the request.", UIHint = ActivityInputUIHints.MultiLine, SupportedSyntaxes = new[] { SyntaxNames.JavaScript, SyntaxNames.Liquid })] public string? Content { get; set; } So How do I convert strings to objects?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
4kb-wghcommented, Sep 18, 2021
  • If no formatter is selected, the response will be available as a regular string. Perfect If no formatter is selected, the response will be available as a regular int too. I believe Elsa will be better and better. Thanks.
0reactions
sfmskywalkercommented, Sep 19, 2021

Closing this as solved, but feel free to follow up as you please.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display only the value of a field in a content-type template
When I put the entire iframe into field it turns the html tags into text. I tried {{ content.field_video|raw }}. but the output...
Read more >
How do I pass the value of two separate inputs into ...
In my template I have a form that includes two input elements whose values can be adjusted with javascript. I want to be...
Read more >
How to get the value of text input field using JavaScript
The value attribute specifies the initial value of the Input Text Field. It contains the default value or the user types.
Read more >
HTML input value Attribute
The value attribute specifies the value of an <input> element. The value attribute is used differently for different input types: For "button", "reset",...
Read more >
Retrieve the value of a text field
In this recipe, learn how to retrieve the text a user has entered into a text field using the following steps: Create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found