Forcetalks | Shaharyar | Activity https://www.forcetalks.com/shaharyar/activity/ Activity feed for Shaharyar. Fri, 06 Feb 2026 12:03:50 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 950a434553af68f591c2d3e125bf2c5f Shaharyar replied to the discussion What is difference between user agent flow, web server flow and Username-Password OAuth Authentication Flow in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-diff-bw-user-agent-flowweb-server-flow-and-username-password-oauth-authentication-flow/#post-22058 Wed, 13 Sep 2017 12:06:09 +0530 Reply to What is difference between user agent flow, web server flow and Username-Password OAuth Authentication Flow in Salesforce?

  • Web server flow (In OAuth spec terms, Authorization Code Grant) tends to be used for web applications where server-side code needs to interact with Force.com APIs on the user's behalf, for example DocuSign:Tokens are sent directly from the Authorization Server to the OAuth Client app, providing a high level of…

Read more

]]>
0886d004976bc54bdd8653d6d9a1c641 Shaharyar started the discussion How to associate multiple leads to campaign in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/how-to-associate-multiple-leads-to-compaign/ Wed, 06 Sep 2017 07:00:59 +0530 How to associate multiple leads to campaign in Salesforce?

Requirement Mentioned in attached file:Please help if any one can do itRequirement???

]]>
eafd77c9a54a879a03626d32a9175daa Shaharyar replied to the discussion What is the use of Metadata API in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-metadata-api-salesforce/#post-21992 Wed, 06 Sep 2017 05:49:41 +0530 Reply to What is the use of Metadata API in Salesforce?

 

Use of Metadata API in Salesforce:

  • You can read, create, update, delete following components in a Salesforce organization.
  1. Custom Objects/Fields.
  2. Visualforce pages.
  3. Page Layouts.
  4. Validation rules.
  5. Apex.
  6. Workflows.
  7. Approval processes.
  8. Profiles.
  9. Reports etc.
  10. Security.
    You can configure a Salesforce organization just by running…

Read more

]]>
c2d06491786947b1201f99a25bbbd334 Shaharyar replied to the discussion what are the change set limitations in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-the-change-set-limitations-in-salesforce/#post-21987 Tue, 05 Sep 2017 11:58:11 +0530 Reply to what are the change set limitations in Salesforce?

Hi Uday,

  • Following are the main limitations that you encounter with change sets:
  1. We cannot deploy all the types of metadata components in one shot.
  2. We can deploy only sandbox to sandbox or sandbox to production.
  3. Either deploy or rollback all the components on any failure.There is no way to deploy successful components and ignore the…

Read more

]]>
bc0de4170327953dbe07f3d2bbebc03f Shaharyar started the discussion How to render Map or Map() in Visualforce page? in the forum https://www.forcetalks.com/salesforce-topic/how-to-render-map-or-map-in-visual-force-page/ Tue, 05 Sep 2017 11:52:48 +0530 How to render Map or Map() in Visualforce page?

How we can use render features in Map?

]]>
202651a26f55ddefaa22a53a709722a7 Shaharyar replied to the discussion What is the difference between WhoId and WhatId? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-whoid-and-whatid/#post-21919 Tue, 29 Aug 2017 05:26:19 +0530 Reply to What is the difference between WhoId and WhatId?

WhatId: ID of a related Account, Opportunity, Campaign, Case, or custom object. Labelis Opportunity/Account ID.
WhoId: ID of a related Contact or Lead. If the WhoId refers to a lead, then the WhatId field must be empty. Label is Contact/Lead ID. If Shared Activities is enabled, this is the ID of a related Lead or primary Contact.

whoid & whatid

]]>
e4789ef32c18ead23ee02dc3a2652f3e Shaharyar replied to the discussion I am new to salesforce. i want to send email with attachment in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-am-new-to-salesforce-i-want-to-send-email-with-attachment/#post-21916 Tue, 29 Aug 2017 05:21:59 +0530 Reply to I am new to salesforce. i want to send email with attachment

 

public class EmailStaticResource {

public void StaticresourceDataAsEmail(){

Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();

email.setUseSignature(false);

email.setSaveAsActivity(true);

email.setSubject(‘Send Email using staticResource as body of mail ‘);

String[] toAddresses = new String[]… Read more

]]>
3423ce5f6af0675ad8cad03a34d7bdc1 Shaharyar replied to the discussion How can I create rollup Summary field in Account Object with Opportunity Amount using Triggers? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-create-rollup-summary-field-in-account-object-with-opportunity-amount-using-triggers/#post-21874 Fri, 25 Aug 2017 09:37:12 +0530 Reply to How can I create rollup Summary field in Account Object with Opportunity Amount using Triggers?

 

Hi Aman,

First make a field on account object with name "OppAmount" and then use this code:

#Trigger
trigger calAmount on Opportunity (after insert, after update, after delete) {
Map<Id, List<Opportunity>> acctIdOpptyListMap = new Map<Id, List<Opportunity>>();
Set<Id> acctIds = new Set<Id>();
List<Opportunity> opptyList =… Read more

]]>
4b76393a75f3d07a31091f9ce91383b8 Shaharyar replied to the discussion I have a salesforce.com developer account and can log in there, but in workbench.developerforce.com in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-have-a-salesforce-com-developer-account-and-can-log-in-there-but-in-workbench-developerforce-com/#post-21872 Fri, 25 Aug 2017 06:28:31 +0530 Reply to I have a salesforce.com developer account and can log in there, but in workbench.developerforce.com

Answer-

There could be few reasons

1.      The “API Only User” perm has been set at the profile level, for the only Sys Admin profile in an org

2.      A Permission Set has been assigned at the User level, to the only Sys Admin user in an org.

3.      Make sure that you are login to right environment like there is sandbox or production.

]]>
0cd68c28a6332fa26e4588825dcf5c20 Shaharyar replied to the discussion How i can delete selected list value on button click in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-i-can-delete-selected-list-value-on-button-click/#post-21787 Tue, 22 Aug 2017 10:35:27 +0530 Reply to How i can delete selected list value on button click in Salesforce?

hi Shariq, Shubham

Thanks for your response.

I have some more requirements, i want to create 1 more button to update the selected value.

the form should be opened on the same page .

]]>
895a4fc177d376fa1e67f8f94556bb7a Shaharyar started the discussion How i can delete selected list value on button click in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/how-i-can-delete-selected-list-value-on-button-click/ Tue, 22 Aug 2017 07:04:02 +0530 How i can delete selected list value on button click in Salesforce?

I have select List and i want to delete any of the selected value by clicking on Delete button.

Example:

Suppost i have four value in select List

A

B

C

D

then when i cselet option B

and click on delete button then that value will be deleted from selected list.

]]>
1f7497c4c596c9a64df01350b173fd0b Shaharyar and absar ahmad are now connected https://www.forcetalks.com/activity/p/18878/ Mon, 21 Aug 2017 11:35:22 +0530 0 75660d1b7d39551de5961ba6a7839d3d Shaharyar replied to the discussion How to retrieve related List of Objects which exist in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-retrieve-related-list-of-object/#post-21757 Mon, 21 Aug 2017 11:00:56 +0530 Reply to How to retrieve related List of Objects which exist in Salesforce?

Hello Shubham,

Thanks for your answer but My question is different Suppose i don't know the name of related list which exist.Then how i can get the name of all related list.

 

I have found this code while searching on net. But it is not working.

Plese check it if u can make it correct:

public class getRelatedList {

public… Read more

]]>
e07ee692b6054ad9f965afee640ec43c Shaharyar started the discussion How to retrieve related List of Objects which exist in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/how-to-retrieve-related-list-of-object/ Mon, 21 Aug 2017 08:54:18 +0530 How to retrieve related List of Objects which exist in Salesforce?

I want to retrieve related list of objects which exist.

For example as Account object has contact, Opportunity,Case etc as a related List.

]]>
310b4368810da0cf5305cc36cf759ee3 Shaharyar replied to the discussion Is it possible that two Salesforce objects can have same Id in different orgs? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-it-possible-that-two-objects-can-have-same-id-in-different-orgs/#post-21746 Mon, 21 Aug 2017 06:32:28 +0530 Reply to Is it possible that two Salesforce objects can have same Id in different orgs?

@Saloni

Want more clarification?

What if, both the organization have same environment??

]]>
d65029576649587edc26de15c626dac1 Shaharyar replied to the discussion How to prevent a Salesforce record from being deleted in account object when rating is set to hot? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-prevent-a-record-from-being-deleted-in-account-object-when-rating-is-set-to-hot/#post-21744 Mon, 21 Aug 2017 06:19:29 +0530 Reply to How to prevent a Salesforce record from being deleted in account object when rating is set to hot?

trigger preventDeletionAccount on Account (before delete) {
List<Account> acc=new List<Account>();
for(Account acc:trigger.old)
{
if(acc.Rating=='Hot'){
acc.addError('Prevents Deletion');
}
}
}

]]>
333734692e94efc3f1c207eb211380c0 Shaharyar replied to the discussion SOQL to find Accounts without Contacts AND Opportunities in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/soql-to-find-accounts-without-contacts-and-opportunities/#post-21742 Mon, 21 Aug 2017 05:37:30 +0530 Reply to SOQL to find Accounts without Contacts AND Opportunities in Salesforce

Hi Radakrishna,

Use this

Select Id, Name from Account where ID NOT IN (Select AccountId from Contact) AND ID NOT IN (Select AccountId from Opportunity)

]]>
1e0697c03b90363d70ae997624555dd0 Shaharyar replied to the discussion what is salesforce lifecycle? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-salesforce-lifecycle/#post-21733 Sat, 19 Aug 2017 07:14:52 +0530 Reply to what is salesforce lifecycle?

Salesforce Lifecycle is the steps from Requirement to completion Phase:

Typical development lifecycle:

1-Plan functional requirements.
2-Develop using Salesforce Web tools, using profiles to hide your changes until they’re ready to deploy.
3-Update profiles to reveal your changes to the appropriate users.
4-Notify end users of changes.

]]>
0886eaf12e2f8997e3401f35686e2753 Shaharyar started the discussion What is "CHURAN" in SalesForce?? in the forum https://www.forcetalks.com/salesforce-topic/what-is-churan-in-salesforce/ Thu, 17 Aug 2017 09:33:29 +0530 What is "CHURAN" in SalesForce??

Somewhere i found this word used in apex class very frequently. What is its use???

]]>
4eb6720efc99461ce696cda2048171ae Shaharyar started the discussion What is the Order of execution of actions in Salesforce Workflow? in the forum https://www.forcetalks.com/salesforce-topic/what-is-the-order-of-execution-of-actions-in-workflow/ Wed, 16 Aug 2017 12:15:23 +0530 What is the Order of execution of actions in Salesforce Workflow?

Given a business requirement, wherein you have to execute all the available actions in a single workflow rules. What will be the sequence of actions?

]]>
18aa7e15b6faa3cef142260b51a7f9a4 Shaharyar replied to the discussion In interview i face questions apex with related with java.so does any one have notes or related links? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-interview-i-face-questions-apex-with-related-with-java-so-in-any-one-have-notes-or-related-links/#post-21649 Wed, 16 Aug 2017 06:40:57 +0530 Reply to In interview i face questions apex with related with java.so does any one have notes or related links?

Hi Raghav,

Thanks for showing your interest in asking question on this platform.

Make your Question clear so that i can assist you?

If you are asking for difference between APEX & JAVA then here is your answer.

Apex classes and Java classes work in similar ways, but there are some significant differences.
These are the major… Read more

]]>
838cea0b0f933e31d749ed7ee2df88cd Shaharyar started the discussion How to create unique contacts in Salesforce depending on the value of number of location field in account object? in the forum https://www.forcetalks.com/salesforce-topic/how-to-create-unique-contacts-depending-on-the-value-of-number-of-location-field-in-account-object/ Wed, 16 Aug 2017 06:29:26 +0530 How to create unique contacts in Salesforce depending on the value of number of location field in account object?

I have created a trigger on account object and want to insert or update number of contacts depending on the value of number of location field in Account Object.

While using List<Contacts> it's working and gives list of contacts with same name.

But i want to use Set<Contact> to get unique contacts????

 

#trigger

trigger numberOfLocations… Read more

]]>
1cec97dcecf1e8691f6d0ad248cd2742 Shaharyar started the discussion How to create unique contacts in Salesforce depending on the value of number of location field in account object? in the forum https://www.forcetalks.com/salesforce-topic/how-to-create-unique-contacts-depending-on-the-value-of-number-of-location-field-in-account-object/ Wed, 16 Aug 2017 06:29:26 +0530 How to create unique contacts in Salesforce depending on the value of number of location field in account object?

I have created a trigger on account object and want to insert or update number of contacts depending on the value of number of location field in Account Object.

While using List<Contacts> it's working and gives list of contacts with same name.

But i want to use Set<Contact> to get unique contacts????

 

#trigger

trigger numberOfLocations… Read more

]]>
d74985b3b4585df8803c58bae73eddba Shaharyar replied to the discussion I need the formula for a workflow in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-need-the-formula-for-work-flow/#post-21637 Wed, 16 Aug 2017 04:16:03 +0530 Reply to I need the formula for a workflow in Salesforce

Hello Radhakrishna,

Workflow Rules

Setup > Workflow Rules > New Rule > Object Product > Enter Rule Name > Select created in Evaluation Criteria > In Rule Criteria enter Product: Product Record Type > Operator equal > Select needed record type in Value field > Save & next

Add Workflow Action > Field update > Select checkbox that should… Read more

]]>
65844faac55af53e629d3eae102aa072 Shaharyar replied to the discussion I need the formula for a workflow in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-need-the-formula-for-work-flow/#post-21637 Wed, 16 Aug 2017 04:16:03 +0530 Reply to I need the formula for a workflow in Salesforce

Hello Radhakrishn,

Workflow Rules

Setup > Workflow Rules > New Rule > Object Product > Enter Rule Name > Select created in Evaluation Criteria > In Rule Criteria enter Product: Product Record Type > Operator equal > Select needed record type in Value field > Save & next

Add Workflow Action > Field update > Select checkbox that should pe… Read more

]]>
b7a0f8452cd71a0a83f56168c45b31c9 Shaharyar replied to the discussion I need the formula for a workflow in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-need-the-formula-for-work-flow/#post-21637 Wed, 16 Aug 2017 04:16:03 +0530 Reply to I need the formula for a workflow in Salesforce

Hello Radhakrishn,

Workflow Rules

Setup > Workflow Rules > New Rule > Object Product > Enter Rule Name > Select created in Evaluation Criteria > In Rule Criteria enter Product: Product Record Type > Operator equal > Select needed record type in Value field > Save & next

Add Workflow Action > Field update > Select checkbox that should pe… Read more

]]>
8fc6a6eeaa131e5439ff6437ffb1928e Shaharyar replied to the discussion How to access map on visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-access-map-on-visualforce-page/#post-21635 Tue, 15 Aug 2017 19:26:56 +0530 Reply to How to access map on visualforce page?

Visiting the following link may help you to understand...
developer.salesforce.com/forums/?id=906F0000000971EIAQ

]]>
14b5bb3882e7e738739bb89c3d89965c Shaharyar replied to the discussion How to access map on visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-access-map-on-visualforce-page/#post-21635 Tue, 15 Aug 2017 19:26:56 +0530 Reply to How to access map on visualforce page?

Visit the following link may help you to understand...
developer.salesforce.com/forums/?id=906F0000000971EIAQ

]]>
b6d382fc91a94a3fc9bd7077339f6727 Shaharyar and Raghav Chaturvedi are now connected https://www.forcetalks.com/activity/p/18765/ Mon, 14 Aug 2017 10:06:10 +0530 0 045068540d0b8e033852c39f9c75df10 Shaharyar replied to the discussion in which scenario, we should use static method in VF page contoller? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-which-scenario-we-should-use-static-method-in-vf-page-contoller/#post-21620 Sun, 13 Aug 2017 02:17:40 +0530 Reply to in which scenario, we should use static method in VF page contoller?

Hello Saloni,

#Static Method :

Static methods are methods that act globally and not in the context of a particular object of a class. Being global, static methods only have access to its provided inputs and other static (global) variables.

This example illustrates static vs. non-static methods
public class LightJedi {
public… Read more

]]>
714721b097bc58566319e348530d9710 Shaharyar replied to the discussion What are salesforce instances? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-salesforce-instances/#post-21619 Sat, 12 Aug 2017 03:24:11 +0530 Reply to What are salesforce instances?

Hello Shariq,

An instance of Salesforce is the specific configuration that you see when you log into Salesforce. So my instance of Salesforce is what I see when I log in which is different from your instance when you log in which is different from what everyone else sees when they log in.

for eg:-
https://ap1.salesforce.com/003/o

Here, ap1 Read more

]]>
cb7346c42fda3ef514318b40d02f6de3 Shaharyar replied to the discussion What is @TestSetup annotation? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-testsetup-annotation/#post-21618 Sat, 12 Aug 2017 03:19:58 +0530 Reply to What is @TestSetup annotation?

Hello Shubham,

As you know that, Initially we had to create test data in every test method, because every test method is considered a different transaction with its own governor limits. But Salesforce has introduced @TestSetUp annotation for test class method. You can write a method in test class, with @TestSetUp annotation applied, and create… Read more

]]>
96b39e6841d4ad743a1c72642c571956 Shaharyar replied to the discussion What is TestVisible Annotation in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-testvisible-annotation/#post-21617 Sat, 12 Aug 2017 03:10:14 +0530 Reply to What is TestVisible Annotation in Salesforce?

@TestVisible Annotation.

This annotation enables a more permissive access level for running tests only. TestVisible annotation allow test methods to access private or protected members of another class outside the test class. These members include methods, member variables, and inner classes.

  • This example shows how to annotate a private…

Read more

]]>
2ace2da15a0dd2a6e770caa4a1944a91 Shaharyar posted a new post. https://www.forcetalks.com/?p=21551 Fri, 11 Aug 2017 06:52:56 +0530
TRIGGERS AND ORDER OF EXECUTION.

This topic came up again today in reference to a trigger to modify lead assignments. It's always important to keep the order of these events…

]]>
b5c7c5ce342fb9cb76fa50036677bdb5 Shaharyar replied to the discussion Why SeeAllData(True) in Salesforce? Why we use it? what will happen if it is false? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-seealldatatrue-why-we-use-it-what-will-happen-if-it-is-false/#post-21546 Thu, 10 Aug 2017 06:01:00 +0530 Reply to Why SeeAllData(True) in Salesforce? Why we use it? what will happen if it is false?

Thanks!!!

]]>
b7ec138893b3a3f8a1273b9fcf4fd52a Shaharyar replied to the discussion SOQL Query ( Accounts and Contacts ) in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/soql-query-accounts-and-contacts/#post-21539 Thu, 10 Aug 2017 05:12:37 +0530 Reply to SOQL Query ( Accounts and Contacts ) in Salesforce

Hello Rahul,

#Apex Class

public class AccountAndContacts {

public static void displayContacts(){
List<Account> acc=[Select Id,Name from Account];
for(Account a:acc){
List<Contact> con=[Select LastName from contact where AccountId=:a.id];
for(Contact c:con){
if(con.size()>1){
System.debug('AccountName… Read more

]]>
1447e79d6e7795a6859bdf0de5a307aa Shaharyar started the discussion Why SeeAllData(True) in Salesforce? Why we use it? what will happen if it is false? in the forum https://www.forcetalks.com/salesforce-topic/why-seealldatatrue-why-we-use-it-what-will-happen-if-it-is-false/ Thu, 10 Aug 2017 04:29:15 +0530 Why SeeAllData(True) in Salesforce? Why we use it? what will happen if it is false?

Explain in brief with example.

]]>
2f6844a95e37305313e18f601eedf5bd Shaharyar started the discussion Why we use Test.starTest and Test.stopTest in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/why-we-use-test-startest-and-test-stoptest/ Thu, 10 Aug 2017 04:28:05 +0530 Why we use Test.starTest and Test.stopTest in Salesforce?

Give some example for better explanation.

]]>
02c961d6eaeb67cfcc5c00857b286be3 Shaharyar started the discussion Can we have different triggers on same object?If yes, then is it best practice to use? in the forum https://www.forcetalks.com/salesforce-topic/can-we-have-different-triggers-on-same-objectif-yes-then-is-it-best-practice-to-use/ Thu, 10 Aug 2017 04:26:15 +0530 Can we have different triggers on same object?If yes, then is it best practice to use?

Please Explain giving some scenerio.

]]>
add2553e04db27655ec60fc8548fa359 Shaharyar replied to the discussion What is wrapper class in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-wrapper-class-in-salesforce/#post-21534 Wed, 09 Aug 2017 16:09:47 +0530 Reply to What is wrapper class in Salesforce?

Hello Aman,

Wrapper we can understand as the outer part of any kind of things (object like custom, standard, checkbox etc)that is wrapped with some kind of material.

A wrapper is a class or container whose instance is a collection of other objects.

The best example is when you apply for any jobs in websites the page looks like checkbox,… Read more

]]>
c50be768862fd4e1b656d3e322be3b70 Shaharyar replied to the discussion What is wrapper class in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-wrapper-class/#post-21534 Wed, 09 Aug 2017 16:09:47 +0530 Reply to What is wrapper class in Salesforce?

Hello Aman,

Wrapper we can understand as the outer part of any kind of things(object like

Wrapper we can understand as the outer part of any kind of things(object like custom, standard, checkbox etc)that is wrapped with some kind of material
A wrapper is a class or container whose instance is a collection of other objects.
The best example… Read more

]]>
f6a59c0711999729d7f9c33a6aa4d7f8 Shaharyar replied to the discussion How to restrict tab/view/Object in salesforce other than Profile? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-restrict-tabviewobject-in-salesforce-other-than-profile/#post-21526 Wed, 09 Aug 2017 12:18:49 +0530 Reply to How to restrict tab/view/Object in salesforce other than Profile?

Hi Tanu,

Profiles define your basic level of access. Anything not present at the profile level can be granted using permission sets.

However when to use a new profile vs a permission set depends on the number of users you anticipate.

When 10 out 100 users need additional permission it is feasible to create a base profile with… Read more

]]>
9c2232f60eccc8e74c13a140f75284bf Shaharyar replied to the discussion How to restrict tab/view/Object in salesforce other than Profile? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-restrict-tabviewobject-in-salesforce-other-than-profile/#post-21526 Wed, 09 Aug 2017 12:18:49 +0530 Reply to How to restrict tab/view/Object in salesforce other than Profile?

Hi Tanu,

 

Profiles define your basic level of access. Anything not present at the profile level can be granted using permission sets.

However when to use a new profile vs a permission set depends on the number of users you anticipate.

When 10 out 100 users need additional permission it is feasible to create a base profile with… Read more

]]>
60513cf61e492bd1c30d0190dadeb2f4 Shaharyar replied to the discussion I want to integrate salesforce with my .net application, what is order REST API to get all order details ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-want-to-integrate-salesforce-with-my-net-application-what-is-order-rest-api-to-get-all-order-details/#post-21525 Wed, 09 Aug 2017 12:13:26 +0530 Reply to I want to integrate salesforce with my .net application, what is order REST API to get all order details ?

]]>
e7bdb6e4d8553a147393a59732a41ad8 Shaharyar replied to the discussion how to integrate salesforce with MongoDB without any tools??' in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-integrate-salesforce-with-mongodb-without-any-tools/#post-21524 Wed, 09 Aug 2017 12:09:06 +0530 Reply to how to integrate salesforce with MongoDB without any tools??'

Most of  MongoDB to Salesforce integration practice is about making custom REST API solutions to access mongoDB JSON files, and pull,push, or delete data from Salesforce databases.

Here are some steps to integrate it(MongoDB) with SalesForce.

1.Authentication

This step involves authenticating yourself for accessing MongoDB databases, and… Read more

]]>
a243bd2c5b230254704a0afa620cda21 Shaharyar started the discussion How is AWS (Amazon Web Services) different from Salesforce? (Technical Answer Required) in the forum https://www.forcetalks.com/salesforce-topic/how-is-aws-amazon-web-services-different-from-salesforce-technical-answer-required/ Tue, 08 Aug 2017 05:11:31 +0530 How is AWS (Amazon Web Services) different from Salesforce? (Technical Answer Required)

How is AWS (Amazon Web Services) different from Salesforce? (Technical Answer Required)

]]>
54c4f82794c195845331f92f3f0e63d1 Shaharyar replied to the discussion When we will use of GET and POST in the Integration Services? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/when-we-will-use-of-get-and-post-in-the-integration-services/#post-21500 Tue, 08 Aug 2017 05:07:23 +0530 Reply to When we will use of GET and POST in the Integration Services?

# POST is used to create record using web services:

# Whereas GET is used to retrieve record.

# Example can be seen as:

Method :- Get
URL:- /services/data/v36.0/sobjects/Account/0019000001hE8af

GET

Method :- Post
URL:- /services/data/v36.0/sobjects/Account/
Request Body :-

{
"Name" : "Shaharyar4U",
"phone" : "7867867860",
"website"… Read more

]]>
20da53e708e2aefd31f3bb5de205ef5a Shaharyar replied to the discussion What is the use of apex param? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-apex-param/#post-21497 Tue, 08 Aug 2017 04:25:25 +0530 Reply to What is the use of apex param?

<apex:param> tag is mainly used to pass values from JavaScript to an Apex controller, it can only be used with the following parent tags/The <apex:param> component can only be a child of the following components:.
• <apex:actionFunction>
• <apex:actionSupport>
• <apex:commandLink>
• <apex:outputLink>
• <apex:outputText>
•… Read more

]]>
6daebe3aa20fb6914c88713a2751ad3b Shaharyar replied to the discussion How to add Custom Field on Particular Object through Salesforce Apex Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-add-custom-field-on-particular-object-through-salesforce-apex-class/#post-21470 Fri, 04 Aug 2017 09:49:46 +0530 Reply to How to add Custom Field on Particular Object through Salesforce Apex Class?

 

Please try this it will work.

public static void createObject()
{
MetadataService.MetadataPort service = createService();
MetadataService.CustomObject customObject = new MetadataService.CustomObject();
customObject.fullName = 'Test__c';
customObject.label = 'Test';
customObject.pluralLabel = 'Tests';
customObject.nameField =… Read more

]]>
5235235b1818c6a41aee6a9ca6c8bd61 Shaharyar replied to the discussion What is RestResource Annotation in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-restresource-annotation/#post-21467 Fri, 04 Aug 2017 09:23:14 +0530 Reply to What is RestResource Annotation in Salesforce?

  •  REST annotation enables you to expose an Apex class or an Apex method as a REST resource. In salesforce, there are six REST annotations, that is :

1). @RestResource(urlMapping=’/your url’)

2). @HttpGet

3). @HttpPost

4). @HttpPut

5). @HttpPatch

6). @HttpDelete

7). @HttpHead

  • Classes with REST annotation should be defined…

Read more

]]>