Agriculture Empowerment Using Salesforce

Author’s:

Technical Document Of Agriculture Empowerment

  • Gaurav Lokhande.
  • Mihir Dhore.

Date: 05/01/2024

Github link:

https://github.com/gaurravlokhande/Agriculture-Empowerment-Hackathon.git

Business Process it Supports:

It makes farming easier and better for farmers. Our platform has everything farmers need in one place: real-time market prices, weather updates, suggestions for seeds and fertilizers, market trends, and expert advice. Stay informed, make smart decisions, and be a part of the growing farming community. Agricultural Empowerment is all about helping farmers succeed in farming.

Access Controls:

Every Guest user has access to the Agriculture Empowerment site.

Code Units:

Apex Class:

    • AgricultureEmpowerment.apxc
    • TranslateLanguageAgri.apxc

LWC Component:

    • home.lwc
    • aboutus.lwc
    • footer.lwc
    • seedsandfertilizer.lwc
    • markettrends.lwc
    • newsandtips.lwc
    • trainingandsupport.lwc
    • feedback.lwc

Custom Object:

    • Market Trends
    • Seeds
    • Fertilizers
    • News & Tips
    • Seasonal Calendar
    • My Schemes
    • Feedbacks

API Integration:

    • Weather API
    • Agriculture API

Custom Settings:

    • Remote Site Settings
    • Trusted Url
    • Note: Added api’s Endpoint in this settings.
  • Profiles(Guest User Profile):
    • Agriculture Empowerment Profile
    • Steps: All Sites → Builder → Settings → Guest User Profile → Agriculture Empowerment Profile.

Digital Experiences:

Data Model Diagram

Diagram Link :

https://drive.google.com/file/d/1eqygZBi0yuCjM705GOwEzDklqaGmzxB3/view?usp=sharing

Execution Flow Diagram

AgricultureEmpowerment.cls

Method Name

Purpose

Input Param

Object

Invocation Type

FetchAllSeeds()

For Fetch all data from

Seeds c custom object.

List<Seeds c>

Seeds c

Sync

FetchAllFertilizers()

For Fetch all data from Fertilizers c custom object.

List<Fertilizers c>

Fertilizers c

Sync

showViews()

For Fetch all data from Market_Trend c custom object.

List<Market_Trend c>

Market_Trend c

Sync

FetchAllNewsData()

For Fetch all data from News_Tips c custom object.

List<News_Tips c>

News_Tips c

Sync

FetchSeasonalCalendarData()

For Fetch all data from Seasonal_Calendar c custom object.

List<Seasonal_Calendar c>

Seasonal_Calendar c

Sync

schemelist()

For Fetch all data from Schems c custom object.

List<Schems c>

Schems c

Sync

insertViews()

For Insert the views of guest users.

List<Market_Trend c>

Market_Trend c

Sync

insertFeedback()

For Insert Feedback of guest users.

List<Feedbacks c>

Feedbacks c

Sync

TranslateLanguageAgri.cls

Method Name

Purpose

Input Param

Object

Invocation Type

GetAllTranslation()

For Fetch translation from Custom labels.

labelName

/Language → hindi

Sync

CropSelection()

For Fetch translation from Custom labels for Crop Selection.

hindi

Sync

soilprepration()

For Fetch translation from Custom labels for soil preparation.

hindi

Sync

seedselection()

For Fetch translation from Custom labels for seed selection.

hindi

Sync

seedsowing()

For Fetch translation from Custom labels for seed sowing.

hindi

Sync

irrigation()

For Fetch translation from Custom labels for irrigation.

hindi

Sync

FertilizersandManures()

For Fetch translation from Custom labels for Fertilizers and Manures.

hindi

Sync

WeedManagement()

For Fetch translation from Custom labels for seed sowing.

hindi

Sync

tipsfordiseases()

For Fetch translation from Custom labels for tips for diseases.

hindi

Sync

tipsforHarvesting()

For Fetch translation from Custom labels for tips for Harvesting.

hindi

Sync

Objects Information

Object Name

API Name

Fields api name/Type/Length

Purpose

Seeds

Seeds c

  1. Image_Url c (URL(255))
  2. Information_del1 c (Text Area(255))
  3. Name (Text(80))
  4. Read_More c (URL(255))
  5. Recommanded_Season c (Picklist: Winter, Summer, monsoon)

Used to store the Seeds Data.

Fertilizers

Fertilizers c

  1. Name(Text(80))
  2. Image_Url c (URL(255))
  3. Information c (Text Area(255))
  4. Read_More c (URL(255))
  5. Seeds c Lookup (Seeds)

Used to store the Fertilizers Data.

Seasonal Calendar

Seasonal_Calendar c

  1. End_Date c (Date)
  2. Information c (Text Area(255))
  3. Name (Text(80))
  4. Seeds c (Lookup(Seeds))
  5. Start_Date c (Date)

Used to store the Seasonal Calendar Data.

News & Tips

News_Tips c

  1. Date c (Date)
  2. Description c (Long Text Area(527))
  3. Headline c Text Area(255)
  4. Image_Url c (URL(255))
  5. Name (Auto Number)
  6. Website_url c (URL(255))

Used to store the News & Tips Data.

Market Trend

Market_Trend c

  1. Name (Text(80))
  2. Submission_Date c (Date)
  3. View c(Long Text Area(32768))

Used to store the Market Trend Data.

My Scheme

Schems c

  1. Date c (Date)
  2. Information c (Text Area(255))
  3. Read_More c (URL(255))
  4. Name (Text(80))

Used to store the My Scheme Data.

Feedback

Feedbacks c

  1. Feedback c (Long Text Area(32768))
  2. Name (Auto Number)
  3. Submission_Date c (Date)

Used to store the Feedback Data.

Thank You…!

Author’s:

Technical Document Of Agriculture Empowerment

  • Gaurav Lokhande.
  • Mihir Dhore.

Date: 05/01/2024

Github link:

https://github.com/gaurravlokhande/Agriculture-Empowerment-Hackathon.git

Business Process it Supports:

It makes farming easier and better for farmers. Our platform has everything farmers need in one place: real-time market prices, weather updates, suggestions for seeds and fertilizers, market trends, and expert advice. Stay informed, make smart decisions, and be a part of the growing farming community. Agricultural Empowerment is all about helping farmers succeed in farming.

Access Controls:

Every Guest user has access to the Agriculture Empowerment site.

Code Units:

Apex Class:

    • AgricultureEmpowerment.apxc
    • TranslateLanguageAgri.apxc

LWC Component:

    • home.lwc
    • aboutus.lwc
    • footer.lwc
    • seedsandfertilizer.lwc
    • markettrends.lwc
    • newsandtips.lwc
    • trainingandsupport.lwc
    • feedback.lwc

Custom Object:

    • Market Trends
    • Seeds
    • Fertilizers
    • News & Tips
    • Seasonal Calendar
    • My Schemes
    • Feedbacks

API Integration:

    • Weather API
    • Agriculture API

Custom Settings:

    • Remote Site Settings
    • Trusted Url
    • Note: Added api’s Endpoint in this settings.
  • Profiles(Guest User Profile):
    • Agriculture Empowerment Profile
    • Steps: All Sites → Builder → Settings → Guest User Profile → Agriculture Empowerment Profile.

Digital Experiences:

Data Model Diagram

Diagram Link :

https://drive.google.com/file/d/1eqygZBi0yuCjM705GOwEzDklqaGmzxB3/view?usp=sharing

Execution Flow Diagram

AgricultureEmpowerment.cls

Method Name

Purpose

Input Param

Object

Invocation Type

FetchAllSeeds()

For Fetch all data from

Seeds c custom object.

List<Seeds c>

Seeds c

Sync

FetchAllFertilizers()

For Fetch all data from Fertilizers c custom object.

List<Fertilizers c>

Fertilizers c

Sync

showViews()

For Fetch all data from Market_Trend c custom object.

List<Market_Trend c>

Market_Trend c

Sync

FetchAllNewsData()

For Fetch all data from News_Tips c custom object.

List<News_Tips c>

News_Tips c

Sync

FetchSeasonalCalendarData()

For Fetch all data from Seasonal_Calendar c custom object.

List<Seasonal_Calendar c>

Seasonal_Calendar c

Sync

schemelist()

For Fetch all data from Schems c custom object.

List<Schems c>

Schems c

Sync

insertViews()

For Insert the views of guest users.

List<Market_Trend c>

Market_Trend c

Sync

insertFeedback()

For Insert Feedback of guest users.

List<Feedbacks c>

Feedbacks c

Sync

TranslateLanguageAgri.cls

Method Name

Purpose

Input Param

Object

Invocation Type

GetAllTranslation()

For Fetch translation from Custom labels.

labelName

/Language → hindi

Sync

CropSelection()

For Fetch translation from Custom labels for Crop Selection.

hindi

Sync

soilprepration()

For Fetch translation from Custom labels for soil preparation.

hindi

Sync

seedselection()

For Fetch translation from Custom labels for seed selection.

hindi

Sync

seedsowing()

For Fetch translation from Custom labels for seed sowing.

hindi

Sync

irrigation()

For Fetch translation from Custom labels for irrigation.

hindi

Sync

FertilizersandManures()

For Fetch translation from Custom labels for Fertilizers and Manures.

hindi

Sync

WeedManagement()

For Fetch translation from Custom labels for seed sowing.

hindi

Sync

tipsfordiseases()

For Fetch translation from Custom labels for tips for diseases.

hindi

Sync

tipsforHarvesting()

For Fetch translation from Custom labels for tips for Harvesting.

hindi

Sync

Objects Information

Object Name

API Name

Fields api name/Type/Length

Purpose

Seeds

Seeds c

  1. Image_Url c (URL(255))
  2. Information_del1 c (Text Area(255))
  3. Name (Text(80))
  4. Read_More c (URL(255))
  5. Recommanded_Season c (Picklist: Winter, Summer, monsoon)

Used to store the Seeds Data.

Fertilizers

Fertilizers c

  1. Name(Text(80))
  2. Image_Url c (URL(255))
  3. Information c (Text Area(255))
  4. Read_More c (URL(255))
  5. Seeds c Lookup (Seeds)

Used to store the Fertilizers Data.

Seasonal Calendar

Seasonal_Calendar c

  1. End_Date c (Date)
  2. Information c (Text Area(255))
  3. Name (Text(80))
  4. Seeds c (Lookup(Seeds))
  5. Start_Date c (Date)

Used to store the Seasonal Calendar Data.

News & Tips

News_Tips c

  1. Date c (Date)
  2. Description c (Long Text Area(527))
  3. Headline c Text Area(255)
  4. Image_Url c (URL(255))
  5. Name (Auto Number)
  6. Website_url c (URL(255))

Used to store the News & Tips Data.

Market Trend

Market_Trend c

  1. Name (Text(80))
  2. Submission_Date c (Date)
  3. View c(Long Text Area(32768))

Used to store the Market Trend Data.

My Scheme

Schems c

  1. Date c (Date)
  2. Information c (Text Area(255))
  3. Read_More c (URL(255))
  4. Name (Text(80))

Used to store the My Scheme Data.

Feedback

Feedbacks c

  1. Feedback c (Long Text Area(32768))
  2. Name (Auto Number)
  3. Submission_Date c (Date)

Used to store the Feedback Data.

Follow us on Social Media
Scroll to Top