Skip to main content

Posts

APEX Asynchronous Operation using APEX Batch and Iterable both

 global class ApexBatchQueryExample implements Database.Batchable<SObject>{ global Database.QueryLocator start(Database.BatchableContext bc) {        String data='Indore';         // Query all active Accounts         return Database.getQueryLocator(                           'SELECT Id, Name, Industry FROM Account WHERE Name = :data'         );     }     global void execute(Database.BatchableContext bc, List<SObject> scope) {         List<Account> accList = (List<Account>) scope;         for (Account acc : accList) {             acc.Industry = 'Technology';  // Example processing         }         update accList;     }          global void finish(Da...

RestFul API in Salesforce Create & Consume both

 Restful API in Salesforce Create & Consume both @RestResource(urlMapping='/MyService/*') global with sharing class RestAPIService {     @HttpGet     global static String doGet() {         List<countryies__c> obj = [Select ID,Name from countryies__c];         String data='';         for(countryies__c item:obj)         {             data += 'ID is '+ item.id + 'Name is ' + item.Name + '\n';         }         return data;     }     @HttpPost     global static String doPost(String name) {        countryies__c obj = new countryies__c();         obj.Name=name;         insert obj;                  return 'Country ' + name + ' Added';     }     @HttpPut  ...

Ansible Tutorial in DEVOPS | What is Ansible in DEVOPS

  Ansible is an open-source automation tool used for: Configuration Management (installing & configuring software) Application Deployment (deploying apps to multiple servers) IT Orchestration (managing complete workflows across servers) It allows you to automate tasks on many servers at once using simple YAML playbooks. 📌 Key Points in the Definition: Agentless → Unlike tools like Puppet or Chef, Ansible doesn’t need any special agent software installed on the target machines. Uses SSH/WinRM → Connects to Linux servers via SSH and to Windows servers via WinRM . Idempotent → If you run a playbook multiple times, it won’t break anything—it ensures the system reaches the desired state. Human-Readable → Uses YAML syntax, easy for beginners. 📌 Example in One Line: 👉 Ansible is like a remote controller for your servers—it lets you install, configure, and manage 1000+ systems just by writing a few lines of YAML code. Step 1: Install Minimal U...

Record-Triggered Flow

  Example 1: Record-Triggered Flow Goal: When an Opportunity is moved to Closed Won , automatically (1) create a follow-up Task for the owner and (2) set the related Account’s Customer Status to Active . 1) Create the flow Go to Setup → Process Automation → Flows → New Flow . Choose Record-Triggered Flow → Create . Object: Opportunity Trigger: “A record is updated ” Entry Conditions: StageName Equals Closed Won When to Run the Flow for Updated Records: Only when a record is updated to meet the condition requirements (prevents repeated runs). Optimize the Flow For: Actions and Related Records (After Save) (needed because we’ll create a Task and update an Account). Click Done . 2) (Optional) Add a formula resource for due date In the Manager tab → New Resource . Resource Type: Formula | Data Type: Date API Name: FollowUpDueDate Formula: TODAY() + 3 Click Done . 3) Create the follow-up Task Drag Create Records onto th...

Create 250 .NET Core Interview Question and Answer

  C# Interview Questions (50) 1. What is C#? Answer: C# is a modern, object-oriented programming language developed by Microsoft, running on the .NET framework. It’s used for building Windows applications, web services, and games via Unity. 2. Explain value types vs. reference types. Answer: Value types (e.g., int , struct ) store data directly in memory, while reference types (e.g., class , string ) store references to memory locations. Value types are stack-allocated; reference types are heap-allocated. 3. What is boxing and unboxing? Answer: Boxing converts a value type to a reference type (e.g., int to object ). Unboxing converts a reference type back to a value type. Both impact performance due to memory overhead. 4. What is the static keyword? Answer: static declares members (methods, fields) that belong to the type itself, not instances. A static class cannot be instantiated. 5. Explain delegates. Answer: Delegates are type-safe function pointers that reference meth...