• Vittorio Pio Ronga
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
Hi,

I am not able to see the Product object on the Salesforce App. I am logged in with System Administrator so there isn't a permission problem. It's really strange, I am not able to open a product also if I search it or I use a lookup from other objects.

Can you help me?
Thank you,
Vittorio
Hi All,

I have configured a site with public access and I have published few articles on it. My guest users are able to see these articles and are able to create a case using a Component we have created.

My problem is that when the guest user open an article, the Article Total View Count doesn't increase. 
I have seen that there is a dedicated object, KnowledgeArticleViewStat, and there is the Channel that rapresents WHERE the article has been opened (https://help.salesforce.com/articleView?id=000213018&type=1)

My gol is increase the view for the channel Pkb.

Thank you for you support,
Vittorio
Hi All,

I have a problem with the Page Layout in Lightning Experience. I have created a very simple Custom Button that calls an URL as you can see below

User-added image

I have added it on my Account Page Layout

User-added image

Unfortunately I am not able to see this button on the Page Layout

User-added image
User-added image

Please help me to understand the reason why I have this problem because I have read few documentation that explain that this is a possible configuration

https://trailhead.salesforce.com/modules/lex_javascript_button_migration/units/javascript_button_alternatives

https://trailhead.salesforce.com/en/modules/lex_migration_customization/units/lex_migration_customization_actions

The idea is that I would like to have a Custom Button URL that calls /apex/NamePage?IdObject={!Case.Id}

Do you have any idea?

Thank you for your support
 
Someone could help me with the Assignment Rules triggered by Apex Code?
I am able to use the Assignment Rule using the new Case button checking the dedicated field in the Page Layout.

Here the Rule Configured

Rule Configured

I am also able to trigger the rule using the trigger on the Case on After Insert using the following Code:

public void OnAfterInsert(Case[] newCase, Map<Id, Case> newCaseMap) {
        List<Id> caseIdSet = new List<Id>();
        for(Case c : newCase) {
            caseIdSet.add(c.Id);
        }
        
        //updateOwnership(caseIdSet);
        
           List<Case> caseList = new List<Case>();
        Database.DMLOptions dmo = new Database.DMLOptions();
        dmo.AssignmentRuleHeader.useDefaultRule = true;
        
        
        for(Case c : [SELECT Id FROM Case WHERE Id IN: caseIdSet]) {
            c.setOptions(dmo);
            caseList.add(c);
        }
        update caseList;
    }

Unfortunatelly the Email Notification isn't sent when I use the trigger. Could you help me please?
If I use the following code I don't receive any email :-(

dmo.EmailHeader.triggerAutoResponseEmail = true;

Do you have any Idea?
Someone could help me with the Assignment Rules triggered by Apex Code?
I am able to use the Assignment Rule using the new Case button checking the dedicated field in the Page Layout.

Here the Rule Configured

Rule Configured

I am also able to trigger the rule using the trigger on the Case on After Insert using the following Code:

public void OnAfterInsert(Case[] newCase, Map<Id, Case> newCaseMap) {
        List<Id> caseIdSet = new List<Id>();
        for(Case c : newCase) {
            caseIdSet.add(c.Id);
        }
        
        //updateOwnership(caseIdSet);
        
           List<Case> caseList = new List<Case>();
        Database.DMLOptions dmo = new Database.DMLOptions();
        dmo.AssignmentRuleHeader.useDefaultRule = true;
        
        
        for(Case c : [SELECT Id FROM Case WHERE Id IN: caseIdSet]) {
            c.setOptions(dmo);
            caseList.add(c);
        }
        update caseList;
    }

Unfortunatelly the Email Notification isn't sent when I use the trigger. Could you help me please?
If I use the following code I don't receive any email :-(

dmo.EmailHeader.triggerAutoResponseEmail = true;

Do you have any Idea?
Hi,

I am not able to see the Product object on the Salesforce App. I am logged in with System Administrator so there isn't a permission problem. It's really strange, I am not able to open a product also if I search it or I use a lookup from other objects.

Can you help me?
Thank you,
Vittorio
Someone could help me with the Assignment Rules triggered by Apex Code?
I am able to use the Assignment Rule using the new Case button checking the dedicated field in the Page Layout.

Here the Rule Configured

Rule Configured

I am also able to trigger the rule using the trigger on the Case on After Insert using the following Code:

public void OnAfterInsert(Case[] newCase, Map<Id, Case> newCaseMap) {
        List<Id> caseIdSet = new List<Id>();
        for(Case c : newCase) {
            caseIdSet.add(c.Id);
        }
        
        //updateOwnership(caseIdSet);
        
           List<Case> caseList = new List<Case>();
        Database.DMLOptions dmo = new Database.DMLOptions();
        dmo.AssignmentRuleHeader.useDefaultRule = true;
        
        
        for(Case c : [SELECT Id FROM Case WHERE Id IN: caseIdSet]) {
            c.setOptions(dmo);
            caseList.add(c);
        }
        update caseList;
    }

Unfortunatelly the Email Notification isn't sent when I use the trigger. Could you help me please?
If I use the following code I don't receive any email :-(

dmo.EmailHeader.triggerAutoResponseEmail = true;

Do you have any Idea?