Skip to main content

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

In this trailhead step: https://trailhead.salesforce.com/content/learn/projects/connect-data-cloud-to-copilot-and-prompt-builder/bring-external-data-into-the-contact-page-layout?trail_id=unlock-your-data-with-data-cloud

 

I have successfully completed the "Enable Data Streams" section, adding the "AIPlusData" Data Bundle to my org.  However, in the next section, each time I attempt to "Create New Ruleset" (under Identity Resolutions), the Primary DMO picklist is empty, and the dialog displays the error, "Mappings from Data Streams to the standard Cloud Information Model objects such as Individual and Contact Points are required." 

 

This doesn't make sense, since the data bundle included the CRM Contact object and mappings to the Standard DMO objects, including Individual and each of the Contact Point objects.  I reviewed the Data Stream mappings for the Contact Home DLO, and did note one warning for Contact Point Phone because the Formatted E164 Phone field wasn't mapped.  I mapped it and refreshed the stream, but no change in the error message.

 

This is a new "Data Cloud and Einstein 1 Playground" created directly from this trail, today, with no other activity besides following the steps in this Trail.

79 answers
  1. Nov 4, 2024, 5:56 PM

    for me it looks like the DMOs are still in the processing status which I assume is my issue

     

    for me it looks like the DMOs are still in the processing status which I assume is my issue

0/9000

I've been waiting 4 hours for Playground to be created but no luck. I've change browser and clean cache and cookies but the issue persist 

 

#Trailhead Challenges

0/9000

Hello! 

 

The following

bolded

formula is providing inconsistent results inside of a flow.  

 

IF({!$Record.Days_till_Event__c} < 7, 

"As your event is within the next 7 days, please provide selections and approvals for the following design elements as soon as possible to ensure we can properly service your event:" & BR(), 

"What we need from you by " &

{!DateOfEventLess8Days}

& ":" & BR()) & 

 

Where

DateofEventLess8Days

is a formula resource as follows: 

 

TEXT(MONTH({!$Record.Date_of_Event__c - 8})) & "/" & 

TEXT(DAY({!$Record.Date_of_Event__c - 8})) & "/" & 

TEXT(YEAR({!$Record.Date_of_Event__c - 8})) 

 

Sometimes the correct date will display (8 days prior) and sometimes the incorrect date (7 days prior). Not sure what I'm missing! Please let me know if you have any thoughts or if you need more information! 

 

#Flow

1 answer
  1. Today, 6:17 PM

    What is Record.Days_till_Event__c and Record.Date_of_Event__c ?   

     

    Can you post examples of the records showing both fields and examples of records returning correct and incorrect results?  

0/9000

I've a use case where I need to provide "managed package" license and 2 Permission sets to the community user on "Permission assignment"(Custom Object) record creation.

 

Also, when the record of "Permission Assignment"(Custom object) is deleted, I need to remove the managed package license and 2 permission sets.

 

I am facing an issue on the deletion part-

 

A new flow is created on "Permission assignment" object when record is deleted. When I try to remove permission set and license removal in a single flow- it gives the below error-

 

The flow tried to delete these records: XXXXXXXXXXXX. This error occurred: MIXED_DML_OPERATION: DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): PermissionSetAssignment, original object: Permission_Assignment__c.

 

Anyone, any idea how to achieve this functionality?

10 answers
0/9000

I have a field named 'Flag' that represents what type of customer they are & have been using Static Resources & the following code: 

 

IF( 

     INCLUDES(Category__c,"Beta Tester"), 

     IMAGE("

https://syncpadllc--c.na59.visual.force.com/resource/1525876975000/blackCircle?isdtp=p1

", "black"), 

     null 

) & " " & 

IF( 

     INCLUDES(Category__c,"Billing Co"), 

     IMAGE("

https://syncpadllc--c.na59.visual.force.com/resource/1525876995000/blueCircle?isdtp=p1

", "blue"), 

     null 

) & " " & 

IF( 

     INCLUDES(Category__c,"Live User"), 

     IMAGE("

https://syncpadllc--c.na59.visual.force.com/resource/1525876995000/greenCircle?isdtp=p1

", "green"), 

     null 

) & " " & 

 

etc. 

It has been working fine until a few days ago. Now the url to the image shows a broken link. Is there a new way to do this now? 

Also, when I try to edit the static resource, there is no image loaded & when I load it & save, it doesn't stick. 

 

#Formulas  #Salesforce  #TrailblazerCommunity

1 answer
  1. Today, 6:13 PM

    Can you create a List View that shows the Category__c field and the Formula Field side-by-side and post a screenshot?  

     

    Also, if you uploaded the image files as a Static Resource the Image URL should just be  

    IMAGE('/resource/greenCircle', 'green'),  

     

    IMAGE(

    CASE( Do_you_owe_SteveMo_a_beer__c ,

    'Yes', '/resource/Glass_Ball_Green',

    'Of course','/resource/Glass_Ball_Blue',

    'Obviously', '/resource/Glass_Ball_Yellow',

    'Hell Yeah!', '/resource/Glass_Ball_Red',

    'Most certainly', '/resource/Glass_Ball_Gray',

    '**** right you do!','/resource/Glass_Ball_Green',

    '/resource/Glass_Ball_Gray'), 'You owe me a beer!', 32, 32 )

     

    Can you create a List View that shows the Category__c field and the Formula Field side-by-side and post a screenshot?

     

     

     

0/9000

I'm trying to convert a .docx file to .pdf format so I can pass it to MuleSoft IDP for processing. I've attempted several approaches (e.g., using libraries like Apache POI, Docx4j, or Aspose), but all of them eventually fail — either due to unsupported features, missing rendering support, or Maven dependency issues (even after explicitly including all required libraries in pom.xml).

package com.yourcompany    package com.yourcompany;

 

import org.docx4j.Docx4J;

import org.docx4j.openpackaging.packages.WordprocessingMLPackage;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

 

import java.io.ByteArrayOutputStream;

import java.io.InputStream;

 

public class DocxToPdfConverter {

 

    private static final Logger logger = LoggerFactory.getLogger(DocxToPdfConverter.class);

    public static byte[] convertToPdf(InputStream docxInputStream) throws Exception {

        try {

            // Load the DOCX from input stream

            WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(docxInputStream);

            

            // Create output stream

            ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream();

            

            // Convert to PDF

            Docx4J.toPDF(wordMLPackage, pdfOutputStream);

            

            logger.info("DOCX to PDF conversion completed successfully");

            return pdfOutputStream.toByteArray();

            

        } catch (Exception e) {

            logger.error("Failed to convert DOCX to PDF", e);

            throw new Exception("DOCX to PDF conversion failed: " + e.getMessage(), e);

        }

    }

 

    public static void convertToPdf(String docxPath, String pdfPath) throws Exception {

        try {

            WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(docxPath));

            Docx4J.toPDF(wordMLPackage, new java.io.File(pdfPath));

            logger.info("DOCX to PDF conversion completed successfully");

        } catch (Exception e) {

            logger.error("Failed to convert DOCX to PDF", e);

            throw new Exception("DOCX to PDF conversion failed: " + e.getMessage(), e);

        }

    }

}   

1 answer
0/9000
2 answers
0/9000
10 answers
  1. Today, 6:13 PM

    I had this same issue. I had to leave off "running" as the interest type and that seemed to stop it from generating so much extra stuff. None of the other suggestions worked for me. I went back in and saved the interest type field after the record had been created, and that seemed to work just fine. 

0/9000