Sunday, 19 March 2017

Create a warehouse app using Salesforce.com

Steps to create an application in Force.com by declarative model

Create an account and Log in to force.com
Step 1
Click on Setup ⇒ Create ⇒ Objects ⇒ New custom ⇒ object
Label: MySale
Pular Label: MySales
Object Name: MySalev
Record Name: MySale Description
Data Type: Text
Click on Save.



Step 2
Under MySale Go to Custom Field and Relationships ⇒ Click on New Custom Field

Creating 1st Field:--
select Data type as Auto Number ⇒ next
Enter the details ⇒ Field Label: PROD_ID ⇒ Display Format: MYS-{0000}
Starting Number: 1001 ⇒ Field Name: PRODID ⇒ Next ⇒ Save & New

Creating 2nd Field:--
select Data type as Data ⇒ next
Enter the details ⇒ Field Label: Date of Sale ⇒ Field Name: Date_of_Sale
Default Value: Today()-1 ⇒ Next ⇒ Save & New

Creating 3rd Field:--
select Data type as Number ⇒ next
Enter the details ⇒ Field Label: Quantity Sold ⇒ Length:3 ⇒ Decimal places:0 ⇒ Default Value: Show Formulae Editor:1 ⇒ Next ⇒ Save & New

Creating 4th Field:--
select Data type as Currency ⇒ next
Enter the details ⇒ Field Label: Rate ⇒ Field Name: Rate ⇒ Length:4 ⇒ Decimal places:2 ⇒ Default Value: 10 ⇒ Next ⇒ Save & New

Creating 5th Field:--
select Data type as Currency -> next
MySale field ⇒ Quantity__Sold__c*Rate__c ⇒ next ⇒ save.

Now create an App
Setup ⇒ Create ⇒ App ⇒ new ⇒ MyShop ⇒ Next ⇒ Select an Image ⇒ Next ⇒ Add Object MySales.
Now create an Tab
Setup ⇒ Create ⇒ Tab ⇒ New Custom Tab ⇒ Choose MySales object ⇒ select tab styl ⇒ save.
On the top in the tab bar you can see the tab which has been created by you click on the tab you can see your object is opened just click on new button and provide the details mentioned.

No comments:

Post a Comment