• GAURAV SETH
  • NEWBIE
  • 50 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 19
    Replies
I have few queues in partner org to whom some users are subscribed.
I am migrating those to my scratch org using package.xml.
I am gettign error as those users do no exists in my scratch org.
How to resolve this issue ?

In field: userName - no User named "my user " found
Error  force-app/main/default/queues/ADJ_Queue.queue-meta.xml            
Please guide.

Thanks                                
Hi ,

I installed the package SDocs for document generation in my partner org .When I am trying to migrate the code thru package.xml to work on scratch orgs, I am facing lot of dependency error for SDocs.
Error  force-app/main/default/objects/SDOC__SDField__c/SDOC__SDField__c.object-meta.xml                                  Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API
Error  force-app/main/default/objects/SDOC__SDJob__c/SDOC__SDJob__c.object-meta.xml                                      Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API
Error  force-app/main/default/objects/SDOC__SDRelationship__c/SDOC__SDRelationship__c.object-meta.xml                    Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API
Error  force-app/main/default/objects/Account/webLinks/SDOC__Email_Docs.webLink-meta.xml                                 Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (815:15)
Error  force-app/main/default/objects/SDOC__SDoc__c/SDOC__SDoc__c.object-meta.xml                                        Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API

Error  force-app/main/default/objects/SDOC__SDTemplate__c/SDOC__SDTemplate__c.object-meta.xml                            Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API
Error  force-app/main/default/objects/Account/webLinks/SDOC__S_Docs.webLink-meta.xml                                     Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (826:15)
Error  force-app/main/default/objects/Contact/webLinks/SDOC__Add_to_Mass_Merge_List.webLink-meta.xml                     Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (753:15)
Error  force-app/main/default/objects/Contact/webLinks/SDOC__Email_Docs.webLink-meta.xml                                 Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (766:15)
Error  force-app/main/default/objects/Contact/webLinks/SDOC__S_Docs.webLink-meta.xml                                     Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (777:15)
Error  force-app/main/default/objects/Contact/webLinks/SDOC__View_Mass_Merge_List.webLink-meta.xml                       Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (788:15)
Error  force-app/main/default/objects/Event/webLinks/SDOC__S_Docs.webLink-meta.xml                                       Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (232:15)
Error  force-app/main/default/objects/Lead/webLinks/SDOC__Email_Docs.webLink-meta.xml                                    Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (480:15)
Error  force-app/main/default/objects/Lead/webLinks/SDOC__S_Docs.webLink-meta.xml                                        Cannot create a new component with the namespace: SDOC.  Only components in the same namespace as the organization can be created through the API (491:15)

Error  force-app/main/default/profiles/AMS.profile-meta.xml                                                              In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/profiles/ADJ Clerk.profile-meta.xml                                                        In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/profiles/AMSCustomerCommunityPlus.profile-meta.xml                                         In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/ADJClerk_test.permissionset-meta.xml                                        In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/ADJCreate.permissionset-meta.xml                                            In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/ADJManager.permissionset-meta.xml                                           In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/ADJWCJ.permissionset-meta.xml                                               In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/Admin.permissionset-meta.xml                                                In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/Analytics.permissionset-meta.xml                                            In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/Analytics_Cloud_Explorer.permissionset-meta.xml                             In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/Analytics_Int_User.permissionset-meta.xml                                   In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/permissionsets/Einsten.permissionset-meta.xml                                              In field: field - no CustomObject named SDOC__SDField__c found
Error  force-app/main/default/recordActionDeployments/ScheduleHearing.deployment-meta.xml                                In field: QuickAction - no QuickAction named SDOC__SendEmail found
Error  force-app/main/default/recordActionDeployments/RecommendationDeployment.deployment-meta.xml                       Looks like this flow is inactive. Ask your Salesforce admin to activate it.Error  force-app/main/default/layouts/Account-Account Layout.layout-meta.xml                                             In field: customButtons - no WebLink named Account.SDOC__S_Docs found (219:34)
ERROR running force:source:push:  Push failed.


Please guide me.
While doing the initial push to a scratch org - RecordActionDeployment API (guided action) component is failing with error:
Looks like this flow is inactive. Ask your Salesforce admin to activate it.
The flows being referenced in the guided action are active so it should deploy them along with the guided action but not sure why it thinks those flows are inactive.
Has anyone come across this? So far I haven't found anything on this error anywhere else.
We have a requirement to open Account, Contact tabs and some of the custom Object Tabs from a link on Home Page.
How can we achieve that ?
We have created custom Tabs but able to show as a Navigation Item.

Please provide me the solution ,if we can open those from Home Page link.
I need to add a link on homepage where user can click and it should take him to create page of a custom object.
How can I achieve that ? Should I create an aura component or it can be done easily?
Please guide.
I need to mark some fields mandatory in lightning component.
I am using required="true" but it is making field assignment wrong.

Here are the code:

 <div class="slds-form__item" role="listitem" >
                          <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                            <label class="slds-form-element__label" for="single-form-element-id-02">Start Date</label>
                             <div class="slds-form-element__control">
                              <lightning:input type="Date" aura:id="hearingStartDateId"
                                         name="hearingStartDate" min="{!v.MinDate}"
                                         value="{!v.newScheduleHearing.Start_Date__c}"
                                          required="true"    />
                              </div>
                          </div>
                        </div>
                         
                         <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">End Date</label>
                            
                                <div class="slds-form-element__control" >
                                    
                                      <lightning:input type="Date" aura:id="hearingEndDateId"
                                         name="hearingEndDate" min="{!v.MinDate}"
                                         value="{!v.newScheduleHearing.End_Date__c}"
                                         />
                                </div>
                           </div>
                         </div>
                      </div> 
                       
                        <div class="slds-form__row">
                            
                            <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">Location Code</label>
                                <div class="slds-form-element__control" >                                    
                                  <lightning:select name="hearingLocationCode" aura:id="hearinglocation"
               value="{!v.newScheduleHearing.Location__c.Location_Code__c}" label=""
                                                    required="true" >
                            <option value="">Choose One</option>
                            <option value="AHM">AHM</option>
                            <option value="ANA">ANA</option>
                            <option value="BAK">BAK</option>
                            <option value="EUR">EUR</option>
                            <option value="FRE">FRE</option>
                            <option value="GOL">GOL</option>
                            <option value="GRO">GRO</option>
                            <option value="LAO">LAO</option>
                            <option value="LBO">LBO</option>
                            <option value="MDR">MDR</option>
                            <option value="OXN">OXN</option>
                            <option value="POM">POM</option>
                            <option value="RDG">RDG</option>
                            <option value="RIV">RIV</option>
                            <option value="SAC">SAC</option>
                            <option value="SAL">SAL</option>
                            <option value="SBR">SBR</option>
                            <option value="SDO">SDO</option>
                            <option value="SJO">SJO</option>
                            <option value="SRO">SRO</option>
                            <option value="STK">STK</option>
                            <option value="VNO">VNO</option> 
                            <option value="WCK">WCK</option>                            
                        </lightning:select>  
                                </div>
                             </div>
                        </div>
                            
                            <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">Type of Hearing</label>
                                <div class="slds-form-element__control" >
                                    
                            <lightning:select name="hearingType" aura:id="hearingType" 
                                          value="{!v.newScheduleHearing.Type_Of_Hearing__c}" label="">
                            <option value="">Choose One</option>
                            <option value="Expedited Hearing">Expedited Hearing</option>
                            <option value="Lien Conference">Lien Conference</option>
                               </lightning:select>
                                    </div>
                                </div>
                              </div>
                        </div>


mandatory field
Above image shows that Start date and Location code is not coming correctly. If I remove required="true" ,then it is visible correctly.

Thanks,
Gaurav Seth
I need to change the disabled checkbox in lightning.
Here is my code:

<td width="20">
                            <div class="slds-checkbox slds-truncate"/>
                            <aura:if isTrue="{!innerMap.Value[0]==false}">
                                <ui:inputCheckbox  aura:id="EightAM" value = "EightAM" change="{!c.selectoptionvalue}" />
                                <label class="slds-checkbox__label" for="checkbox">
                                    <span class="slds-checkbox_faux"></span>
                                    <span class="slds-form-element__label">8AM</span>
                                </label>
                                <aura:set attribute="else">
                                    <ui:inputCheckbox aura:id="checkbox1" class="dark-checkbox" value = "" disabled="true"/>
                                    <label class="slds-checkbox__label" for="checkbox">
                                        <span class="slds-checkbox_faux"></span>
                                        <span class="slds-form-element__label">   8AM    </span>
                                    </label>
                                </aura:set>
                            </aura:if>
                        </td>

Here is my css

.THIS .dark-checkbox{
    background-color: red;
}

But is not affecting.What am I missing?

Thanks,
Gaurav Seth
Spring 2020 release notes says that we can assign Tasks to queue.
I am able to assign task to any queue from task screen but it doesn't our problem of assigning task to queue using trigger or from process builder.

We have a requirement to create a new task and assigned to queue whenever any new case is created ?How can I achieve that?

Thanks,
Gaurav Seth
Hi,

I am creating a event object using apex trigger

if(eightAM == 'true') {
                                                      DateTime startDateTime = kstartDate;
                                                    DateTime ednDateTime = kendDate;
                                                        Event eventObject = new Event();
                                                        eventObject.OwnerId = userID;
                                                        eventObject.Location = location; 
                                                        eventObject.StartDateTime = startDateTime.addHours(8);
                                                        eventObject.EndDateTime =startDateTime.addHours(9);
insert eventObject;
}

If it is 8 AM, I am adding 8 hours to create event entry and it is getting inserted but Calendar always show time 4 hours less.

I have check the settings , my time zone and company profile time zone is same.How can I resolve this issue ?

Thanks,
I created a event record for 2 PM-3 PM but it is showing 10 AM on calendar.When I am running SOQL, it is showing the correct time.
DO we have to do some settings to fix that ?

Thanks,
Gaurav Seth
Missing Tile Menu images in migrated community. I can see those images in contentassets folder but not able to see in community.When I naviate to navigation item and went to Tile Menu-then can not see those images.

Can someone please help ? I am using package.xml for migration.
We need to send letters(notices) to customers about any complaint or chane is schedule using the existing templates which are stored in word documents on one server say Filnet.
Which is ther best way to accomplish that in Salesforce ?
Any AppExchange application exists for that as looks like nothing OOTB in salesforce ?

Thanks,
Gaurav Seth
Need Help to migrate Communities , Roles, profile from Developer Edition org. We are using VS code and able to migrate all custom Objects, custom fields, visual force pages, apex classes etc using unmanaged package. Then we are using scratch orgs for development.
But Roles and communities are not a part of unmanaged package.
Can someone please tell me how to migrate these items so that we have all items?

What is the best way to accomplish that ?

Thanks,
Gaurav Seth
For System Architect route- these are the prerequisites:
1) Development Lifecycle and Deployment Designer
2) Identity and Access Management Designer
3) Integration Architecture Designer
4) Platform Developer I

I am already done with Platform Developer1.
I need suggestion that which certification should I go first from 

2) Identity and Access Management Designer
3) Integration Architecture Designer

Thanks,
Gaurav Seth
Hi,
I configured Einstein Bot and getting all responses from it.
If I try to add a Apex call to fetch some data. Getting message 'No Agent available'
I already added the permission set to that Apex class. 
What else can be the reason ?

Thanks,
Gaurav Seth
Hi,
I am calling external web services from my Apex class .
I am getting response code 302 instead of 
response.getStatusCode() == 200.

If I am adding request.setHeader() Cookie value which I copied from Postman application when hitting the same web service. It works fine.

Looks like there is some configuration missing? 
Can someone please help me in this ?
I need to call a external web service from Apex class.
I am always getting unsuccessful response.
If I hit that url from Postman, I am getting response successfully.
I took the jSessionId LTPAToken2 from Postman response and add it to my Apex class as below:

request.setHeader('Cookie', 'JSESSIONID=0000huO7wL9GJGO_ZEAlW-4NDCd:-1; LtpaToken2=ZLjH0oX2UiZfYXakvwH5+AhhhCYaEIEEoBCsD12bHY+Ovs+4VF5zFo0B00gMDNjQMwcA==')

After this when I execute my Apex class, I am getting successful response. I am wondering that there migh tbe certificate issue .
Can someone please help ?
DO we have any trailmix which can provide insight on AI Chat bots to be used in Einstein ?
Need help to understand the best way to move Data from Production to Developer edition Sandbox with every refresh.
Do we have any tool which can be used for free and can we automate the process do complete it ?
Hi,
I need to show a integrated view page of different components.
I have created separate .cmp files and add to the Record page using "Edit Page" functionality but it is not appearing properly .
I don't need this yellow gaps between grid and component.
I have cerated components with same size.
User-added image

Here is my component code:

<aura:component implements="force:hasRecordId,force:hasSObjectName,flexipage:availableForRecordHome">  
    
    <aura:handler name="init" action="{!c.doInit}" value="{!this}" />
     <lightning:recordViewForm recordId="a034P00000UOdRWQA1"
        objectApiName="Facility__c">
   
    <!-- PAGE HEADER -->
    <lightning:layout horizontalAlign="center">
        <lightning:layoutItem>
            <lightning:icon iconName="standard:scan_card" alternativeText="Facility Information"/>
        </lightning:layoutItem>
        <lightning:layoutItem padding="horizontal-small">
            <div class="page-section page-header  slds-size_2-of-2">
                <h1 class="slds-text-heading--label">Facility Information</h1>
              
            </div>
        </lightning:layoutItem>
    </lightning:layout>
    <!-- / PAGE HEADER -->
    <lightning:layout  horizontalAlign="center">
        <lightning:layoutItem padding="around-small" size="10">
            <div aria-labelledby="caseSearchform" class="slds-align_absolute-left  slds-size_2-of-2">
                <fieldset class="slds-box slds-theme--default slds-container--large">
                    <h1 class="slds-text-heading--medium">Facility Information</h1>
                    <form class="slds-form--stacked">
                        <div class="slds-form__row">
                                <div class="slds-form-element__control">
                      <lightning:outputField fieldName="Name" />
                                     </div>
                          </div>   
                   <div class="slds-form__row">
                            
                                    
                            <div class="slds-form-element__control">
                      <lightning:outputField fieldName="Discharge_Date__c" />
                                     </div>
                          </div>
                        
                        <div class="slds-form__row">
                            
                                       <div class="slds-form-element__control">
                      <lightning:outputField fieldName="Admission_Date__c"  />
                                     </div>
                          </div>
                        
                        
                        <div class="slds-form__row">
                            
                                    
                            <div class="slds-form-element__control">
                      <lightning:outputField fieldName="Person__c"  />
                                     </div>
                          </div>
                       
                        
                            <div class="slds-form__row">
                           
                            <div class="slds-form-element__control">
                      <lightning:outputField fieldName="Provider_Details__c" />
                                     </div>
                          </div>
                       
                        <div align="center">
                        <lightning:button label="View" 
                                          class="slds-m-top--medium"
                                          variant="brand"
                                          onclick="{!c.view}"/>  
                        </div>
                    </form>              
                </fieldset>
            </div>
        </lightning:layoutItem>
    </lightning:layout> 
         </lightning:recordViewForm>
</aura:component>
Hi,

I am creating a event object using apex trigger

if(eightAM == 'true') {
                                                      DateTime startDateTime = kstartDate;
                                                    DateTime ednDateTime = kendDate;
                                                        Event eventObject = new Event();
                                                        eventObject.OwnerId = userID;
                                                        eventObject.Location = location; 
                                                        eventObject.StartDateTime = startDateTime.addHours(8);
                                                        eventObject.EndDateTime =startDateTime.addHours(9);
insert eventObject;
}

If it is 8 AM, I am adding 8 hours to create event entry and it is getting inserted but Calendar always show time 4 hours less.

I have check the settings , my time zone and company profile time zone is same.How can I resolve this issue ?

Thanks,
Need Help to migrate Communities , Roles, profile from Developer Edition org. We are using VS code and able to migrate all custom Objects, custom fields, visual force pages, apex classes etc using unmanaged package. Then we are using scratch orgs for development.
But Roles and communities are not a part of unmanaged package.
Can someone please tell me how to migrate these items so that we have all items?

What is the best way to accomplish that ?

Thanks,
Gaurav Seth
I need to mark some fields mandatory in lightning component.
I am using required="true" but it is making field assignment wrong.

Here are the code:

 <div class="slds-form__item" role="listitem" >
                          <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                            <label class="slds-form-element__label" for="single-form-element-id-02">Start Date</label>
                             <div class="slds-form-element__control">
                              <lightning:input type="Date" aura:id="hearingStartDateId"
                                         name="hearingStartDate" min="{!v.MinDate}"
                                         value="{!v.newScheduleHearing.Start_Date__c}"
                                          required="true"    />
                              </div>
                          </div>
                        </div>
                         
                         <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">End Date</label>
                            
                                <div class="slds-form-element__control" >
                                    
                                      <lightning:input type="Date" aura:id="hearingEndDateId"
                                         name="hearingEndDate" min="{!v.MinDate}"
                                         value="{!v.newScheduleHearing.End_Date__c}"
                                         />
                                </div>
                           </div>
                         </div>
                      </div> 
                       
                        <div class="slds-form__row">
                            
                            <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">Location Code</label>
                                <div class="slds-form-element__control" >                                    
                                  <lightning:select name="hearingLocationCode" aura:id="hearinglocation"
               value="{!v.newScheduleHearing.Location__c.Location_Code__c}" label=""
                                                    required="true" >
                            <option value="">Choose One</option>
                            <option value="AHM">AHM</option>
                            <option value="ANA">ANA</option>
                            <option value="BAK">BAK</option>
                            <option value="EUR">EUR</option>
                            <option value="FRE">FRE</option>
                            <option value="GOL">GOL</option>
                            <option value="GRO">GRO</option>
                            <option value="LAO">LAO</option>
                            <option value="LBO">LBO</option>
                            <option value="MDR">MDR</option>
                            <option value="OXN">OXN</option>
                            <option value="POM">POM</option>
                            <option value="RDG">RDG</option>
                            <option value="RIV">RIV</option>
                            <option value="SAC">SAC</option>
                            <option value="SAL">SAL</option>
                            <option value="SBR">SBR</option>
                            <option value="SDO">SDO</option>
                            <option value="SJO">SJO</option>
                            <option value="SRO">SRO</option>
                            <option value="STK">STK</option>
                            <option value="VNO">VNO</option> 
                            <option value="WCK">WCK</option>                            
                        </lightning:select>  
                                </div>
                             </div>
                        </div>
                            
                            <div class="slds-form__item" role="listitem" >
                              <div class="slds-form-element slds-form-element_horizontal slds-is-editing">
                                <label class="slds-form-element__label" for="single-form-element-id-02">Type of Hearing</label>
                                <div class="slds-form-element__control" >
                                    
                            <lightning:select name="hearingType" aura:id="hearingType" 
                                          value="{!v.newScheduleHearing.Type_Of_Hearing__c}" label="">
                            <option value="">Choose One</option>
                            <option value="Expedited Hearing">Expedited Hearing</option>
                            <option value="Lien Conference">Lien Conference</option>
                               </lightning:select>
                                    </div>
                                </div>
                              </div>
                        </div>


mandatory field
Above image shows that Start date and Location code is not coming correctly. If I remove required="true" ,then it is visible correctly.

Thanks,
Gaurav Seth
I need to change the disabled checkbox in lightning.
Here is my code:

<td width="20">
                            <div class="slds-checkbox slds-truncate"/>
                            <aura:if isTrue="{!innerMap.Value[0]==false}">
                                <ui:inputCheckbox  aura:id="EightAM" value = "EightAM" change="{!c.selectoptionvalue}" />
                                <label class="slds-checkbox__label" for="checkbox">
                                    <span class="slds-checkbox_faux"></span>
                                    <span class="slds-form-element__label">8AM</span>
                                </label>
                                <aura:set attribute="else">
                                    <ui:inputCheckbox aura:id="checkbox1" class="dark-checkbox" value = "" disabled="true"/>
                                    <label class="slds-checkbox__label" for="checkbox">
                                        <span class="slds-checkbox_faux"></span>
                                        <span class="slds-form-element__label">   8AM    </span>
                                    </label>
                                </aura:set>
                            </aura:if>
                        </td>

Here is my css

.THIS .dark-checkbox{
    background-color: red;
}

But is not affecting.What am I missing?

Thanks,
Gaurav Seth
Hi,

I am creating a event object using apex trigger

if(eightAM == 'true') {
                                                      DateTime startDateTime = kstartDate;
                                                    DateTime ednDateTime = kendDate;
                                                        Event eventObject = new Event();
                                                        eventObject.OwnerId = userID;
                                                        eventObject.Location = location; 
                                                        eventObject.StartDateTime = startDateTime.addHours(8);
                                                        eventObject.EndDateTime =startDateTime.addHours(9);
insert eventObject;
}

If it is 8 AM, I am adding 8 hours to create event entry and it is getting inserted but Calendar always show time 4 hours less.

I have check the settings , my time zone and company profile time zone is same.How can I resolve this issue ?

Thanks,
I created a event record for 2 PM-3 PM but it is showing 10 AM on calendar.When I am running SOQL, it is showing the correct time.
DO we have to do some settings to fix that ?

Thanks,
Gaurav Seth
Missing Tile Menu images in migrated community. I can see those images in contentassets folder but not able to see in community.When I naviate to navigation item and went to Tile Menu-then can not see those images.

Can someone please help ? I am using package.xml for migration.
Need Help to migrate Communities , Roles, profile from Developer Edition org. We are using VS code and able to migrate all custom Objects, custom fields, visual force pages, apex classes etc using unmanaged package. Then we are using scratch orgs for development.
But Roles and communities are not a part of unmanaged package.
Can someone please tell me how to migrate these items so that we have all items?

What is the best way to accomplish that ?

Thanks,
Gaurav Seth
Hi,
I configured Einstein Bot and getting all responses from it.
If I try to add a Apex call to fetch some data. Getting message 'No Agent available'
I already added the permission set to that Apex class. 
What else can be the reason ?

Thanks,
Gaurav Seth
Hi,
I am calling external web services from my Apex class .
I am getting response code 302 instead of 
response.getStatusCode() == 200.

If I am adding request.setHeader() Cookie value which I copied from Postman application when hitting the same web service. It works fine.

Looks like there is some configuration missing? 
Can someone please help me in this ?
I need to call a external web service from Apex class.
I am always getting unsuccessful response.
If I hit that url from Postman, I am getting response successfully.
I took the jSessionId LTPAToken2 from Postman response and add it to my Apex class as below:

request.setHeader('Cookie', 'JSESSIONID=0000huO7wL9GJGO_ZEAlW-4NDCd:-1; LtpaToken2=ZLjH0oX2UiZfYXakvwH5+AhhhCYaEIEEoBCsD12bHY+Ovs+4VF5zFo0B00gMDNjQMwcA==')

After this when I execute my Apex class, I am getting successful response. I am wondering that there migh tbe certificate issue .
Can someone please help ?
DO we have any trailmix which can provide insight on AI Chat bots to be used in Einstein ?
List<Event> lstevt =[Select Subject,StartDateTime, EndDateTime,Description from Event  where StartDateTime!=null  and StartDateTime = EndDateTime]
        This is not working , i need to select all event records where startdatetime=enddatetime
Hi All,

I receive the following error when attempting to check the challenge for Apply Unit of Work

Challenge Not yet complete... here's what's wrong: 
The 'challangeComplete' method in the 'UnitOfWorkTest' class has not successfully passed all tests. Ensure that you run the tests and it passes successfully before attempting this challenge again.

However, when I run my code in Developer Console, my test passes.  Any ideas on the problem?  Here is the code:

@isTest
public class UnitOfWorkTest {
    @isTest static void challengeComplete(){
        fflib_SObjectUnitOfWork uow = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );
        
        for (Integer i=0 ; i<100 ; i++) {
            Account a = new Account(Name= 'Test' + i);
            uow.registerNew(a);
            
            for (Integer j=0 ; j<5 ; j++) {
                Contact c = new Contact(LastName = 'Test'+i + ' ' +j);
                uow.registerNew(c, Contact.AccountId, a);
                
                Note n = new Note(Body='Test '+i + '' + j, Title='Test'+i+j);
                uow.registerRelationship(n, Note.ParentId, a);
                uow.registerNew(n, Note.ParentId, a);
            }
        }

        uow.commitWork();
 
        fflib_SObjectUnitOfWork uow2 = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );        
        for (Account a : [SELECT Id, Name, (SELECT Id, LastName FROM Contacts), (SELECT Id, ParentId, Title, Body FROM Notes) FROM Account]) {
            a.Name = 'Test';
            uow2.registerDirty(a);
            
            Integer i = 0;
            for (Contact c : a.Contacts) {
                c.LastName = 'Test';
                uow2.registerDirty(c);
                
                a.Notes[i].Body='Test';
                uow2.registerDirty(a.Notes[i]);
                i++;
            }
        }        
        
        test.startTest();
        uow2.commitWork();
        test.stopTest();
        
        System.assertEquals(100, [Select Id from Account].size());
        System.assertEquals(500, [Select Id from Contact].size());
        System.assertEquals(500, [Select Id from Note].size());
    }
}