• Justin Kate
  • NEWBIE
  • 5 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 8
    Replies
I'm new to salesfore and my goal is to setup SSO between Azure AD and SSO internal user.

This is the guide i'm try to follow
https://help.salesforce.com/articleView?id=sso_provider_azure.htm&type=5 (https://help.salesforce.com/articleView?id=sso_provider_azure.htm&type=5)

I've completed everything but it seems not fully work.

Error from Single Sign-On Initialization URL
Instead, i need to login to salesforce use original salesforce password  and oepn the Existing User Linking URL
https://mydomain.my.salesforce.com/services/auth/link/MyAzure

link open ID

the SSO only work after i link my account manuelly, does anyone know where to establish the auto mapping between two account?

Many thanks!
How to enter blank space in text template when the action is Post to Chatter in flows when we are updating the records.
But the same fuctionality is achieved when i tried with inserting record rather than updating.
So it works well with Insert record + Post to Chatter
But not in Update a record + Post to Chatter
 
Hello, Please advice me to how to create checkbox.

I made a Employee Search and Delete page on visual force for practice.
 And now I want to add checkbox on my search results. This checkbox should be  work for delete employee.  

This is my VF page
<apex:page controller="EmployeeDelete3Controller">
    <apex:form >
        <apex:pageBlock title="EmployeeDelete">
            <apex:pageBlockSection columns="1">
                <apex:inputField required="false" value="{!info.Employee_Name__c}"/>
                <apex:inputField required="false" value="{!info.Employee_DOB__c}"/>
                <apex:inputField required="false" value="{!info.Employee_Mailaddress__c}"/>  
            </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton action="{!search}" value="Search"/>
            </apex:pageBlockButtons>
            <apex:variable id="rowIndex" var="rowIndex" value="1" />
            <apex:pageBlockTable value="{!results}" var="in">
                <apex:column headerValue="No">
                    <apex:outputText value="{!VALUE(rowIndex)}"/>
                    <apex:variable var="rowIndex" value="{!VALUE(rowIndex) + 1}"/>
                </apex:column>
            		<apex:column value="{!in.Employee_Name__c}"/>
                	<apex:column value="{!in.Employee_DOB__c}"/>
                	<apex:column value="{!in.Employee_Mailaddress__c}"/>
                <apex:column headerValue="Delete">
                    <apex:commandLink action="{!delEmp}" value="Delete">
                        <apex:param value="{!in.Id}" assignTo="{!deleteEmployee}" name="deleteEmployee"/>
                    </apex:commandLink>
                </apex:column>
            </apex:pageBlockTable>            
        </apex:pageBlock>
    </apex:form>
    <apex:messages />
</apex:page>

This is my Apex Controller(Sorry, its very long)
public class EmployeeDelete3Controller {
    public Employee_Management__c info { get;set; } 
    public List<Employee_Management__c> results { get;set; }
    public string deleteEmployee { get;set; }
    Public List<Employee_Management__c> deleteEmpResult{ get;set; }
    
    public EmployeeDelete3Controller(){
        results = new List<Employee_Management__c>();
        info = new Employee_Management__c();
        deleteEmpResult= new List<Employee_Management__c>(); 
    }
        
    public PageReference search(){        
        String strSoqlQuery1;       
        String strSoqlQuery2;
        String strSoqlQuery3;      
        String strSoqlQuery4;        
        String strSoqlQuery5;      
        String strSoqlQuery6;    
        String strSoqlQuery7;    
        string strEmployeeMailaddressc;   
        string strEmployeeNamec; 
        String deleteEmployee;
       
        IF(!String.IsBlank(info.Employee_Name__c) && !String.IsBlank(info.Employee_Mailaddress__c) && info.Employee_DOB__c != null) {       
            strEmployeeNamec = info.Employee_Name__c;
            strEmployeeMailaddressc = info.Employee_Mailaddress__c;
            strSoqlQuery1 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c FROM Employee_Management__c Where Employee_Name__c = \'' + strEmployeeNamec + '\' Or Employee_Mailaddress__c = \'' + strEmployeeMailaddressc + '\' Or Employee_DOB__c =' + String.valueOf(info.Employee_DOB__c);
            results = database.query(strSoqlQuery1);          
        }
        else if(!String.IsBlank(info.Employee_Name__c) && !String.IsBlank(info.Employee_Mailaddress__c)) {            
			strEmployeeNamec = info.Employee_Name__c;
            strEmployeeMailaddressc = info.Employee_Mailaddress__c;
            strSoqlQuery2 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c where Employee_Name__c = \'' + strEmployeeNamec + '\' Or Employee_Mailaddress__c = \'' + strEmployeeMailaddressc + '\'';
            results = database.query(strSoqlQuery2);            
        }
        else if(!String.IsBlank(info.Employee_Name__c) && info.Employee_DOB__c != null) {            
			strEmployeeNamec = info.Employee_Name__c;
            strSoqlQuery3 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c WHERE Employee_Name__c = \'' + strEmployeeNamec + '\' Or Employee_DOB__c =' + String.valueOf(info.Employee_DOB__c);
            results = database.query(strSoqlQuery3);            
        }
        else if(!String.IsBlank(info.Employee_Name__c)) {
            
 			strEmployeeNamec = info.Employee_Name__c;
            strSoqlQuery4 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c where Employee_Name__c = \'' + strEmployeeNamec + '\'';
            results = database.query(strSoqlQuery4);            
        }
        else if(!String.IsBlank(info.Employee_Mailaddress__c) && info.Employee_DOB__c != null) {            
            strEmployeeMailaddressc = info.Employee_Mailaddress__c;
            strSoqlQuery5 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c where Employee_Mailaddress__c = \'' + strEmployeeMailaddressc + '\' Or Employee_DOB__c =' + String.valueOf(info.Employee_DOB__c);
            results = database.query(strSoqlQuery5);                        
        } 
        else if(!String.IsBlank(info.Employee_Mailaddress__c)) {
            
            strEmployeeMailaddressc = info.Employee_Mailaddress__c;//info.Employee_Mailaddress__cをstrEmployeeMailaddresscに割り当て
            strSoqlQuery6 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c where Employee_Mailaddress__c = \'' + strEmployeeMailaddressc + '\'';
            results = database.query(strSoqlQuery6);                        
        } 
        else if (info.Employee_DOB__c != null) {            
              strSoqlQuery7 = 'SELECT Employee_Name__c, Employee_Mailaddress__c, Employee_DOB__c  FROM Employee_Management__c WHERE Employee_DOB__c = '+ String.valueOf(info.Employee_DOB__c);
              results = database.query(strSoqlQuery7);   
        } 
        else {
            ApexPages.Message message = new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR');
            ApexPages.addMessage(message);
        }
        return null;
    }
    public PageReference delEmp() {
       string deleteEmployee = 'SELECT Id, Employee_Name__c, Employee_DOB__c, Employee_Mailaddress__c FROM Employee_Management__c where id=' + '\'' + deleteEmployee + '\'';
       deleteEmpResult = database.query(deleteEmployee);
       delete deleteEmpResult;
       return Page.EmpDel2;
    }
}
I`m so sorry that my English skill is very low.

 
Hi All,
In Salesforce Lightning, do we have any option to remove/disable the Drilldown/View report hyper link on Dashboard?.

Thanks,
Naren

Hi Team,

 

In Text type of Email Templates, i want to specify logged in user as merge field. Could anyone have any suggestions.

I have tried with the following lines. But it is not working.

 

$User.FirstName

{!User.FirstName}

 

 

Thanks,

Anil

Hi,

 

I am following the book "Developement with the Force.com platform" by JasonOuelette.

When creating the Custom Objects, I did not check the box to be visible in a tab, and so I could not add this object to the Custom App I was creating. Now I have a created fields and relationships in the custom object. How do I add this Object to the Custom App?

 

thanks

Svidya

  • September 27, 2010
  • Like
  • 2
Hi,
 I have a developer account and i would like to login to Sandbox (https://test.salesforce.com) but i am unable to login to test.salesforce.com

How can i login to the sandbox site?

Thank you.