Everything that you consume on a day to basis be it food, clothes or any other finished product has to cover a long journey before it reaches the customers. Besides the outlet where you go and make a purchase, there is a network of interrelated elements known as the ‘supply chain’ that works on getting these products at your disposal.
However, increased globalization has led to a more complex supply chain ecosystem, which has allowed issues related to trust, speed, and accuracy to penetrate through it. However, the biggest impediment to fixing the otherwise broken supply chains is to find out a way of consolidating data across all the supply chain entities that usually work in silos. The solution lies in integrating disruptive technologies like Blockchain and Salesforce, which can be made possible by partnering with a reliable Salesforce consultant.
Role of Blockchain in Streamlining the Supply Chain:
To understand the role of Blockchain in streamlining the supply chain ecosystem, let’s quote the example of temperature-controlled logistics (perishable food and pharmaceutical) that require to be stored and transported within a certain temperature range to ensure they remain preserved till they are delivered to the end-users. However, managing the integrity of the cold supply chain has become challenging with most of the products either getting lost or contaminated during transit as a result of exposure to unsafe temperature ranges. This happens because of the inefficiency of the current track and trace system that fails to provide sufficient supply chain visibility.
Blockchain – a distributed ledger technology can help resolve issues pertaining to the supply chain ecosystem by reducing inconsistencies, increasing visibility of products during transit through the supply chain and streamlining processes. This becomes possible as every physical asset that is a part of the supply chain ecosystem is represented as a digital asset on the Blockchain network. This is also known as tokenization of assets, which enables increased traceability of products in the supply chain by helping identify the point where food/drugs have been tampered with so that product that is either tampered with or gets contaminated is removed before it reaches the store shelves. This track and trace feature of Blockchain allows customers to track the journey of a product right from the point of origin till store shelves. With an IoT powered Blockchain system in place, data attributes such as the temperature of food/drugs, location, etc. could be gathered and stored. Since data once uploaded on the Blockchain is immutable, errors could be minimized and quality of products can be ensured.
How does Salesforce fit in?
While Blockchain promises to resolve issues related to trust and transparency within the digital economy, Salesforce offers much more than a robust CRM solution. By offering solutions for streamlining information, task automation, analytics, and enhanced communication, this robust CRM platform has transformed the way businesses operate. Just like Blockchain, Salesforce places the power in the hands of the buyers by increasing transparency through tailored solutions and empowering the sales representatives to provide customers with a better quality of service.
When it comes to supply chain, the Salesforce CPQ that stands for Configure, Price, quote provides the necessary tool-set to transform the complex and bulky Sales process into a streamlined one. By providing a consistent process for quotes, Salesforce CPQ can be leveraged for tracking orders and renewals concerning quotes. By allowing buyers to directly see the status of their orders, trust and transparency are enhanced.
How Does the Integration of Blockchain and Salesforce Work?
The integration of Blockchain and Salesforce paves way for a solution that enables information (regarding orders) to reside on Blockchain. This establishes better visibility, security, immutability and most importantly assurance that all the entities will be operating on the shared data across different organizations. Apart from this, all the existing supply chain actors can access their profile from their individual Salesforce orgs along with with product-related details (quality certifications, etc.).
So, what enables the integration of these two technologies? It is to be noted that the product suite (Blockchain ledger, Ethereum app manager and the Hyperledger app manager) created by Salesforce enables the distributed app suite available on Salesforce instance. While the app fixes a listener on the Blockchain, as well as the Salesforce platform in a way that any data that is uploaded on Salesforce gets added as a transaction on the Blockchain platform and vice-versa, the Hyperledger Fabric is built on components such as the consensus mechanism, smart contract functionality, and oracles. The data gathered by these agents are then utilized by Blockchains smart contract functionality.
In the context of the supply chain, a sales rep can create a new quote while generating a proposal by using Salesforce CPQ. Once the opportunity is won the sales reps can create an order including a list of items to be supplied. The DApp(Distributed Apps) suite is set up in a way that the data gets sent to Blockchain after the order receives a specific status. As data regarding the temperature, location, humidity, etc gets recorded on the Blockchain, it gets redirected to Salesforce following which historical details regarding the product’s journey from packaging till delivery can be observed on Salesforce instance. Such reverse integration allows sales reps to validate the exact location of the order on the supply chain.
Conclusion:
Besides the above-mentioned benefits, the integration of Blockchain and Salesforce also enables creation of reports and analytics basis the shared Blockchain data. This will generate new revenue models besides improving supplier/buyer logistics significantly. To sum up, it can be said that the promising integration of Salesforce and Blockchain will not just substitute rigid supply chains but will create a roadmap for the future by working across industries. It’s prudent to get in touch with a reliable Salesforce implementation partner to ensure seamless integration of Salesforce and Blockchain.
IDC Whitepaper
Salesforce.com is #1 in Fortune’s list of ‘100 best companies to work for’. New customers are signing contracts for Salesforce licenses every day, and this indicates the popularity of Salesforce CRM worldwide.
Salesforce CEO Benioff once said, “Salesforce reached $5 billion in annual revenue faster than any other enterprise software company and now it’s our goal to be the fastest to reach $10 billion.”
Currently, businesses are stepping forward to adopt the Salesforce technology with the intention of customer satisfaction as well as enhancing their current sales operations process. To implement a Salesforce solution, a company needs Salesforce geeks who helps them to achieve their business goal.
Currently, Salesforce Consultants and professionals are in huge demand due to Salesforce being adopted by small to large business organizations worldwide at rapid rate. The market has a demand for Salesforce Administrators and Salesforce Developers. To implement Salesforce as a CRM solution, there are various roles required to fulfill the business need such as Administrator, Developer, and Salesforce Architects.
A recent research by G2 Crowd found that:
Customers are crediting Salesforce when it comes to overall CRM functionality 85% higher than the industry average of 75%.
The Salesforce CRM has an 80% better scalability than any other CRM vendor outside the leader category in Gartner’s quadrant and 23% better scalability than vendors present in the leader’s category.
It is always believed that referred customers are always a bonus for any business. More than 80% Salesforce customer has recommended Salesforce as CRM solution to their peers.
85% of Salesforce users believe that Salesforce is headed in the right direction.
Do your dreams include succeeding in Salesforce?
Salesforce is aggressively acquiring companies (small to mid-size) across the world, that provides a competitive edge over other CRM players in current market. More than 2 million companies are using Salesforce as a CRM solution to boost their current sales process and successful customer support. Due to the high adoption rate of Salesforce demand for Salesforce professionals such as Administrators and Developers to manage the Customer’s Salesforce CRM has also increased. To achieve a business goal, Salesforce consultants assist businesses to fully exploit the full potential of Salesforce by having an in-depth knowledge and experience relating to a Salesforce implementation.
To have a career in Salesforce, Consultants need a focused effort in right direction and with level of passion and dedication. Salesforce is like an ocean and consultants do not know how far they can reach. If you are looking for a relatively high paying career, then Salesforce is the right path to proceed with the added ability for work opportunities in this field. The key is to completely understand the elements of your responsibilities and what is required for the job.
Now let’s understand the difference in terms of responsibilities and the earnings achieved by Administrator vs Developer:
Key activities for Salesforce Administrators:
The key areas that are being considered for Salesforce administrator are as follows:
User setup and permissions
Data accessibility
Account modifications
Moreover, Salesforce Administrators are also involved in some other activities such as page layout setup, data deduplication, picklist values configuration, workflow & rule configuration, reports & dashboard creation and many more.
Key roles for Salesforce Developers:
Salesforce developers create
Triggers
Visual force pages as well as custom functionality to support the business processes defined by organization.
Moreover, developers are responsible to establish interface with third party applications to Salesforce through custom APIs integration to accomplish the business need.
To create a Salesforce Solution, both administrators and developers are required, and it is totally depending upon the business requirement.
Salesforce administrators and Salesforce developers are like the two sides of a coin.
Girikon a Salesforce Consulting Partner based in the USA, Australia and India and has a team of Certified Salesforce Consultants including administrators and developers. The Salesforce Consulting Services team have proven expertise with over 400 projects delivered. For further information about Girikon contact us on +61 1300 332 888 or email sales@girikon.com and discuss your current business challenge. We guarantee we will have a solution for you.
Our Salesforce Consulting Team steps through a simple
MuleSoft Integration
At Girikon, a
Salesforce Consulting Company
we believe Salesforce is the world’s no. 1 cloud platform based on CRM (Customer Relationship Management) capabilities. Early last year Salesforce agreed to acquire MuleSoft for a mutli-million-dollar cash and stock deal. MuleSoft, a software company that provides integration software for connecting applications, data and devices.
Girikon’s Salesforce Consultants specialise in many Salesforce products and after the announcement our consulting team gained certifications in MuleSoft. Girikon is commitment to keeping ahead of the pack with knowledge and certifications for leading technologies.
In this blog we are focusing on Salesforce integration with MuleSoft.
Firstly, we will need a Salesforce developer account by clicking on the following link:
https://developer.salesforce.com/signup
.
Then a MuleSoft account by clicking the following link:
https://anypoint.mulesoft.com/login/signup
.
In this first example we can send a couple of contact records to Salesforce with the help of MuleSoft. For this we have to download any point studio which is a MuleSoft IDE by clicking on this link
https://www.mulesoft.com/lp/dl/studio
.
We are going to use any point studio for this data transfer. First download the any point studio. Then extract the zip file in your directory and the click on the application to install it. After installation is finished click on the any point studio icon it will launch a wizard like shown in the figure below.
Fig: – Launch Wizard of Any point Studio
Click on the launch button after selecting the directory of your workspace. It will then open the any point studio as shown in the figure below.
Fig: – Any point Studio
Open the example project in Any point Studio from Any point Exchange by logging into your MuleSoft account.
Download Import Contacts into Salesforce application. Note: do not run the application.
Login to your Salesforce account.
In the left navigation bar, open My Settings under the Personal Setup heading, click to expand the My Personal Information.
Click Reset My Security Token. Salesforce resets the token and emails.
Open your mail account where the security token is sent and copy the token onto your local clipboard.
Now open your Any point Studio after downloading and opening the application it will look like as shown in the given fig.
Fig: – Any point Studio with application
In your application in Studio, click the Global Elements tab. Double-click the Salesforce SFDC config global element to open its Global Element Properties panel.
In the Security Token field, paste the Salesforce token that you copied from your mail.
Alternatively, configure the global element in the XML Editor.
Change the contents of the Username and Password fields to your account-specific values, then click OK to save your changes.
This application project includes a sample CSV file, contacts.csv, that you can use to view the end-to-end functionality of this application. The CSV file will look like this.
Fig: – contacts.csv
In the Package Explorer, click the src/main/resources folder to expand it, then find the contacts.csv file inside this folder. Double-click the File config tab in the Global Elements tab and set the Working Directory field to point to the src/main/resources folder. In the Package Explorer, right-click the import-contacts-into-salesforce project, then select Run As > Mule Application.
Studio runs the application on the embedded server. After the application runs successfully it will create two contacts records in salesforce which the csv file contains. Open your salesforce account, then navigate to the Contacts tab. It will show you two new entries: John Doe and Jane Doe.
Fig: – Two new contacts created
About Girikon
Are you looking for a Salesforce Integration expert? At Girikon it is where the search ends. Girikon is a Salesforce Consulting Partner and has the required set of tools, skilled resources and technical knowledge to understand the platforms an organisation uses and transforms your existing systems to a truly interoperable solution.
Girikon’s Certified Salesforce Consultants understand the rapid increase of mobile, cloud and social platforms. They are here to assist customers who are left to their own devices to develop a solution for their organization. Our
Salesforce Consulting Services
team made up of Architects, Developers, Business Analysts, QA experts have the required knowledge and are certified to design and delivery integrations to suit your needs.
Our services are cost-effective, and our
mulesoft consultants
will develop a strategy to bring together a quality solution which can be across multiple applications and technology platforms such as Salesforce, Microsoft, Oracle, Abode, SAP etc.
Girikon’s Salesforce support team are regularly asked questions about WalkMe interfacing with Salesforce where they initially need to highlight capabilities and benefits once integrated. Girikon, a Salesforce Implementation Partner is proactive and with the assistance of their Salesforce Support consultants outline WalkMe’s benefits such as acceleration time to competency during training, improvement of data integrity, promotion of new Salesforce features and productivity gains. Girikon’s team work closely with existing clients to integrate Salesforce to WalkMe with the knowledge that as a Salesforce Implementation Partner there is a high probability that these type of integrations will be within project scope for new clients.
WalkMe is a cloud platform that assists product managers and customer success managers to create product tours and manage in-app experiences. Without a doubt, WalkMe is one of the first in the user onboarding market. Because of its huge and recognisable brand, it is probably the first choice for many companies. It helps you to onboard and adopt more users by creating different walkthroughs inside your application. Through WalkMe’s dashboard, you can easily see all your user onboarding data and analytics. Because of its strengths and powers, WalkMe is a great tool for larger enterprises. But because of its pricing and hard to use, it isn’t the best option for start-ups, SaaS or small and medium businesses.
Using the Salesforce integration, you can push WalkMe Insights data to Salesforce objects to enhance your understanding of end-user behaviour. Girikon’s Salesforce Consultant Deepanshi takes us through a step by step guide to set up WalkMe and Salesforce integration below.
Requirements
The following items are required before attempting to setup WalkMe:
You must be a Salesforce admin or contact your Salesforce admin in order to add custom fields to your targeted Salesforce object(s)
You must have a Salesforce user that either has Salesforce admin access or ModifyAllData permissions to grant WalkMe access to OAuth 2.0 authorization to read and update the metadata of Salesforce objects (this access can be revoked by the Salesforce Admin at any time)
Walkme is an on-premise solution – so for different purpose you must install it before using it. This can become a little bit messy, since installing Walkme inside your system requires a lot of technical knowledge. So, you need to put a lot of effort just to see how Walkme works.
Girikon’s Salesforce Consulting Services team are certified and experienced with both Pardot and Salesforce Marketing Cloud. They have a depth of knowledge about both automated marketing solutions and have many insights to share.
Pardot and Salesforce Marketing Cloud are both marketing automation solutions where Pardot can be seen as a tool, Salesforce Marketing Cloud is seen a comprehensive toolkit for Marketeers. Both Pardot and Salesforce Marketing Cloud both allow for a level of social media sharing through their tool/toolkit and both also grant a user access for building custom email campaigns.
Despite these similarities, Pardot and Salesforce Marketing Cloud have some differences including the Lead Scoring Model. does not include a lead scoring model however Pardot has default scoring functionality and model that allows for various prospect activities to be scored.
In this Blog our Salesforce Consultant will endeavor to show a user how to generate lead scoring from Email based on [_Sent], [_Open] & [_Click] Data Views.
Data from [ _sent ] , [ _open ] & [ _click ] by join operation in query to be saved in Data Extension ‘ DE_1’ :
Simple perform a Query and join these data view in a separate Data Extension based on
your JobID.
Ex:
from [ _sent ] as a full JOIN [ _open ] as b on
a.[subscriberkey]= b.[subscriberkey] full join [ _click ] as c
on b.[ subscriberkey ] = c.[ subscriberkey ]
Where a.[ JobId ] = < JobID >.
For your reference: join syntax: https://www.w3schools.com/sql/sql_join.asp.
Create a Data Extension with default score value and save it in Data Extension ‘DE_2’:
Import a file containing subscriber key & Initial Score using Import wizard and save these records in separate Data Extension.
Note: At least match a few SubscriberKey with ‘DE_1’ while creating import file.
Join the two Data (DE_1 & DE_2) Extensions and save it to third Data Extension (DE_3):
Using case Statement in Query increment or decrement your Initial Score and save it in ‘Updated Score’ field in the target Data Extension which I have mentioned below in figure (3.2). Along with join these two Data Extension and save it to the Third Data Extension using Query based on SubscriberKey.
Ex:
CASE
WHEN a.[ < Column name > ] IS NOT NULL
THEN [ Initial Score ] +
ELSE [ Initial Score ]
END AS [ Updated Score ]
For reference: Case Statement : https://www.w3schools.com/sql/sql_case.asp.
Create an Automation and Run the following Activities:
After Running these Activities in Automation your records will be updated in Data Extension with updated score:
About Girikon
Girikon is a Salesforce Consultancy Partner, IT consulting and development company, headquartered in the US with development centre in India and office in Australia. Our Global network allows Girikon to quickly respond to customer’s requirements effectively delivering quality outcomes.
Girikon’s team of experienced and certified Salesforce Consultantsincluding Architects, Developers, Consultants, and Administrators.
Our MEAN Stack, Atlassian APP, Microsoft Dynamics CRM, Mobile APPs, JAVA, PHP, ASP, .NET and AI consultants and professionals also provide services which are second to none.
Our customers and services are many and varied from large multinational companies implementing large programs to small-medium enterprises implementing solutions to improve their competitiveness.
Girikon also supports its customers on all leading technology platforms and Girikon’s team of dynamic, seasoned and qualified professionals have a vast experience in IT across many verticals, Product development including design, testing, support and supported by resourcing / staffing models to suit any type of business.
Our Vision is to develop scalable & simplified solution for our clients.
According to Girikon’s Salesforce Consulting Services Team JavaScript has progressed very rapidly in recent years and is still a very powerful programming language that runs on various platforms. If you’re learning JavaScript in 2017 and you haven’t touched ES6, you’re missing out on an easier way to read and write JavaScript.
ES6 refers to version 6 of the ECMA script programming language. ECMA script is the standardized name for JavaScript and version 6 is the next version coming after version 5 which is a major enhancement of JavaScript.
Let’s start
Before ES6, the only way that we could declare a Variable in JavaScript was using the var keyword. When we declared a variable using var Keyword inside a Function. This means that the Scope of that variable would exist only within the Function in which it was declared. And it still makes sense if we declared global variable (outside of a function).
Let’s see this example:
What do you think it will print? 1 or 2?
It will print both value (1 and 2) in the function, firstly 2 and then 1. This is because function scope 2 is printed when the function is called and because of the global scope, 1 is displayed the second time.
Most of you would have get this easily and everything is great until we encounter code inside an if Statement like the example below:
The code print 2, twice because the var keyword does not support block scope. This example makes no sense to you. A block is any code within curly braces. Block scoping ensures that any variable defined within those braces don’t become global instead they have local scope this type of control prevent you from unexpected behaviour in your code.
“Let” Is the New Var
The lack of block scoping has caused many headaches for JavaScript developers especially during variable declaration in for loops. So, for this ES6 introduced Let Keyword any Variable assigned with let always have block scope and cannot be hoisted. If we will use let keyword instead of var then it will be less error prone and avoid all the confusing bugs.
Const
ES6 also introduced another keyword const this can be useful when you need to declare a variable that cannot be redeclared. Const keyword are also blocked scope and cannot be hoisted. However, there are couple of things to be aware of when using the const keyword since const value cannot be reassigned, they must be initialized at the time they are declared.
Just don’t forget that constants are immutable so when dealing with objects or arrays, only the object itself cannot be reassigned. Property within that object or array can be changed example:
We can execute the following code and the name property will be reassigned without throwing an error.
Why type the same thing twice?
Developers are always trying to get data in and out of arrays or objects so for this they use code where the property of an object are initialized using variables like:
In ES6 you no longer must repeat yourself if the variables and object property names are the same. This code accomplishes the same thing:
All we did here was remove the repeating variable name and colon (:). This is very useful when we have objects containing many fields.
ES6 also provide a simpler way of getting out of array or objects. This helps reduce repetitive lines of code example:
You can now access the data through the variable names. So here the number 1 would be Printed to the console. But instead of this you can use another shortened method known as array DE structuring.
The bracket on the left side of the assignment are part of the new DE structuring syntax. So, this is something like four variables named one, two, three, and four and assign the first value in the numbers array to variable one, the second value to variable two, and so on. Shorter, sweeter, great.
We think that once you start working with ES6, you will come to love them as much as we do.
About Girikon
Girikon are IT Development and Salesforce Consulting Company. An excellent choice to be an organisation’s Salesforce Development Partner.
As a Software Development Company, we will take the time to meet your requirements.
We have a variety of
Salesforce Consulting Services
such as Implementation, Consulting, Support and Maintenance and Development Services which includes customization, migration and Integration.
Our Certified Salesforce Developers, Administrators and Architects are available through onshore and offshore delivery models to ensure the Salesforce Development for your implementation is less time consuming, is made simple, and most importantly cost effective.
Girikon’s delivery models can be as flexible as you like with established and balanced onshore/offshore models and agile practices. Our Salesforce Consulting company will provide you with the assurance of accelerated delivery timelines which drive huge reductions in cost and Time-to-Market.
INTRODUCTION
When working on any object in Salesforce and with records we want to edit we can do it however when another user is also editing the same record at the same time in same Salesforce org then both users will have the previous save details to edit. Here is the detail of the problem, the user who saves the record first will change the details then the other user editing the same record is still editing the previously saved record. This causes issues when the second user doesn’t know the first record has changes and they are just about to change an old record.
As a Salesforce Consultant I have had the QA team reject a piece of functionality due to changes to multiple changes to the same Salesforce object where I am either first, second or even the third user to make the changes to the same object. Girikon’s Salesforce Consulting services team is made up of hundreds of Salesforce consultants and as many as 10+ could be working on the same project at one time which sometimes makes it difficult for all consultants to know which objects the other consultants are editing.
THE SOLUTION IS EASIER THAN YOU THINK…
Now let’s think about the solution. We could lock the record for other users. This is a great feature so that second and third users must refresh in order to get the new details.
Whenever two or more users open the Salesforce object record to edit then the user who triggers the first save event has priority and will be able to save the record. When the second user saves the changes then user will get locked and the record will not get saved. To remove the lock, the second user will need to refresh and re-open the editing Window for that particular record. Now the user will be presented the new details which were saved by the first user. I have developed a practical guide below to assist with eliminating the problem.
FOLLOW THE STEP BY STEP SOLUTION BELOW…
First, the records of the object (that you want to edit) should be displayed on the screen through visual force page or lightning.
Now select a record whose details you want to edit .
If two or more users are editing the same record at the same time, then the user who will click on the save button on priority will only be able to save the record.
If other users click on the save button the they will get directed to a new page which will show the message to refresh the page.
For creating this you must add the below mentioned Visual Force code in your VF page.
<apex:page controller="lockingMachenismForAnyObject" sidebar="false">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection>
<apex:inputText value="{!searchName}" label="ENTER THE NAME TO EDIT"/>
</apex:pageBlockSection>
<apex:commandButton value="search" action="{!search}">
</apex:commandButton>
<apex:pageBlockTable value="{!ReturningList}" var="v">
<apex:column headerValue="USER NAME" title="NAME">
<apex:outputField value="{!v.name}"/>
</apex:column
<apex:column headerValue="USER PHONE NUMBER" title="PHONE NO">
<apex:outputField value="{!v.phone}"/>
</apex:column
< apex:column headerValue="USER FAX NUMBER" title="FAX NO">
<apex:outputField value="{!v.fax}"/>
< /apex:column>
< apex:column headerValue="USER ID" title="ID">
< apex:outputField value="{!v.id}" />
</apex:column>
<apex:inlineEditSupport event="ondblClick">
< showOnEdit="saveButton,cancelButton"/>
</apex:pageBlockTable>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}" id="saveButton"/>
< apex:commandButton value="Cancel" action="{!cancel}" id="cancelButton"/>
</apex:pageBlockButtons>
< apex:pageBlockSection >
<apex:inputText value="{!newName}" label="Enter New NAME"/>
</apex:pageBlockSection>
<apex:pageBlockSection>
<apex:inputText value="{!newPhone}" label="Enter New PHONE"/>
</apex:pageBlockSection>
<apex:pageBlockSection >
< apex:inputText value="{!newFax}" label="Enter New FAX"/>
</apex:pageBlockSectio >
< /apex:pageBlock>
</apex:form>
For the above VF code below one is the apex code.
public without sharing class lockingMachenismForAnyObject
{
//Describing all the variables.
public string searchName{get;set;}
public string idOfSearchedName{get;set;}
public string newName{get;set;}
public string newPhone{get;set;}
public string newFax{get;set;}
// Fetching the list of Account records.
public List ob= new List([select name,phone,fax, id from account ]);
//initialising Method.
public list getReturningList() {
return ob;
}
//initialising Method.
public void search()
{
//Modifying the above list according to the name of the record which we want to edit.
ob= new List([select id,name,phone,fax from account where name = : searchName limit 1]);
idOfSearchedName = ob[0].id;
Account[] accountObject = [SELECT Id FROM Account where name = : searchName];
//Checking the locking condition.
if(Approval.isLocked(accountObject[0].id))
{
Approval.unLock(accountObject);
}
}
//initialising Method.
public pageReference save()
{
if(Approval.isLocked(idOfSearchedName))
{
//Sending the user to the locked page if the locking condition is satisfied.
pageReference pr=Name of the connected page to display.
return pr;
}
else
{
//Else saving the record and locking the same record for the other user.
List ob=new List();
Account updateObject=[select id,name,phone,fax from account where id = : idOfSearchedName];
updateObject.name=newName;
updateObject.phone=newPhone;
updateObject.fax=newFax;
ob.add(updateObject);
update ob;
Account[] accountObject = [SELECT Id FROM Account where name = : searchName];
Approval.lock(accountObject);
return null;
}
}
//initialising Method.
public pageReference cancel()
{
pageReference pr=page.pramodSirVF2;
return pr;
}
}
About Girikon
Girikon is a Salesforce consulting company,development team are based in the USA, in Noida, India and offices in Australia. Girikon’s global team in the USA, India and Australia, allows Girikon to respond at Lightning speed to customers across the globe and is known for its effective delivering and quality service. Girikon is made up of a team of certified Salesforce Consultants with experienced Project Managers, Business Analysts, Salesforce Architects, IT Developers, Consultants, and Administrators.
Girikon’s team of dynamic professionals are experienced in IT across many industries and business, their specialities include software development which includes design, QA testing (Manual and Automated, Support and Maintenance and have many resource model options. Our vision is to develop scalable and simplified solutions for our customers.