I detta exempel skapas en knapp som öppnar ett fönster som listar post-ID för användarens valda poster. Att hämta post-ID är användbart vid testning för att säkerställa att du har rätt poster innan du bearbetar dem vidare.
Versioner som krävs
Tillgängliga i: Salesforce Classic
Egna knappar och länkar är tillgängliga i: Alla versioner
Visualforce-sidor och s-controls är tillgängliga i: Utgåvorna Contact Manager, Group, Professional, Enterprise, Performance, Unlimited och Developer
Definiera en knapp med dessa attribut.
Visningstyp
Listknapp
Välj Visa kryssrutor (för val av flera poster) så att användare kan välja flera poster i listan innan de klickar på knappen.
Beteende
Kör JavaScript
Innehållskälla
OnClick JavaScript
Använd denna exempelkod. Det här exemplet är för kontakter. Ändra objektets typ för en annan typ av post.
idArray = {!GETRECORDIDS($ObjectType.Contact)};
alert("The Ids you have selected are: "+idArray);
Lägg till knappen till lämplig relaterad lista på en sidlayout eller listvylayout.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.