• Vaishnavi Bhandiye
  • NEWBIE
  • 5 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Consider the following structure for the CMS workspace
Folder1
  |-Folder2
  |  |-Folder3
  |  |   |-Content1
  |  |-Content2
  |  |-Content3
  |-Content4
We need to access the content in any given folder and render it in the CMS component. Is there any method available to programmatically fetch the contents of the folder by providing folder id or name or any such folder identifier?

I am trying to convert a JSON payload received from an API to a string. The JSON payload contains a special character ( ® ), which throws an error while converting the JSON to string. Following is the error received

"System.StringException: BLOB is not a valid UTF-8 string"

How do I convert this special character to a string?

Consider the following structure for the CMS workspace
Folder1
  |-Folder2
  |  |-Folder3
  |  |   |-Content1
  |  |-Content2
  |  |-Content3
  |-Content4
We need to access the content in any given folder and render it in the CMS component. Is there any method available to programmatically fetch the contents of the folder by providing folder id or name or any such folder identifier?

Whenever we try to import the data having a master-detail relationship or a lookup relationship using the following query

sfdx force:data:tree:export -q "query to fetch child data with master table attribute in select statement" -d ./data

the data gets stored in json format under data folder. But the reference to the parent or the lookup relationship is not fetched or stored. Is there a way to import all the data without losing the referencing?