Comments (5)
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.
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!
-
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? -
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.
On Windows, try ^
to escape the newline.
from force.
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.
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)
- `force push -t AuraDefinitionBundle -n <SOME_COMPONENT>` fails, tries to push unrelated metadata HOT 1
- “fatal signup error” when creating scratch org HOT 1
- Wrong Options Must Throw Error HOT 2
- queryAll in BULK mode HOT 4
- `force push` documentation is incorrect HOT 1
- does force cli can pull metadata in source(dx) format? HOT 1
- force query -f csv UTF- 8 issues HOT 4
- Is it a big change to stupport Salesforce DX project structure? HOT 1
- Can i change the batch size when bulk upsert HOT 2
- Pushing AuraDefinitionBundle by type does not filter by name HOT 1
- lib/log logs everything as error HOT 1
- "force whomai(whoami)" typo on the https://github.com/ForceCLI/force page. HOT 1
- CLI: unexpected end of json input HOT 2
- source:retrieve issue HOT 2
- After logging in : "ERROR: Please login before running this command" HOT 2
- force:org:create: A fatal signup error occurred - org creation issue HOT 1
- ForceCLI is not exporting "StandardValueSet". Why?
- Force Fetch Layouts returning an error but succeeding HOT 1
- Force Fetch should ignore file extensions and not error out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from force.