GithubHelp home page GithubHelp logo

Comments (5)

cwarden avatar cwarden commented on July 17, 2024

You can include line breaks in command, e.g.

$ force record update task field:"Line 1 text to insert
Line 2 more text"
$

or

$ force record update task field:"$(echo -en 'Line 1 text to insert\nLine 2 more text')"

from force.

haydnlj avatar haydnlj commented on July 17, 2024

Thanks for the quick reply.. although cannot seem to get it to work - imagine I will kick myself when I find what I am doing wrong!

  1. First option sends/executes the command on line break even if in a batch file (cmd.exe windows).
    I see references online to using a carat to escape the line break, but that just seems to cat the lines?

  2. Second option using cmd.exe on windows I entered this and the got "Record Updated";
    force record update task description:"$(echo -en 'Uploaded by: Sales Rep\nFor: Customer')"

The field in SFDC literally shows the "$(echo" as text;
"$(echo -en 'Uploaded by: Sales Rep\nFor: Customer')"

from force.

cwarden avatar cwarden commented on July 17, 2024

On Windows, try ^ to escape the newline.

from force.

haydnlj avatar haydnlj commented on July 17, 2024

No dice!
Thanks though - have given me some alternate ideas to chase down. If I can make it work I will comment back here.

from force.

MrDOS avatar MrDOS commented on July 17, 2024

Try hitting “Enter” again at the “More? ” prompt:

C:\>force record update task field:"Line 1 text to insert^
More? 
More? Line 2 more text"

The ^ character is just an escape that lets you enter special characters literally. It does not insert a newline immediately; it just lets you enter one. You can see this behaviour in action with echo:

C:\>echo one^
More? two
onetwo

C:\>echo one^
More?
More? two
one
two

from force.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.