Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Amit Verma

Amit Verma

★ JanBask Expert
Share
19Questions
20Answers
34.0KViews on questions

How to login salesforce users programmatically?

The System.runAs() method allows you to establish a new user session in unit test context. To adapt the example in the linked documentation, @isTest public static void testRunAs() { String uniqueUserName = 'standard user' + DateTime.now().getTime() + '@testorg.com'; Profile p = [SELECT Id FROM Profile WHERE…

QA Testing

Answered Jul 19, 2021 · 2.0K Views Read answer →

How to install tkinter on windows?

You can install the tkinter download windows by following the below-mentioned steps:- Install Tkinter for Python (for Windows): Firstly download the Community Edition of ActivePython for Windows and make sure you're downloading a 3.1 or newer version, not a 2.x version. After downloading run the installer, and follow…

Salesforce

Answered May 15, 2021 · 1.9K Views Read answer →

Can I change the Google Map Marker Color in the Apex Code?

To solve google maps marker color you can either use a different icon or really really draw a polygon, fill it with colors... In your case I'd add some parameter to the function, maybe createMarkerAndInfoWindow(accountName, latlng, isPrimary). Or just pass the selected icon URL as 3rd param?…

Salesforce

Answered Apr 24, 2021 · 1.2K Views Read answer →

Why Scope_Identity() returns null after inserting the first row in a table?

The tables have a parent-child relationship i.e. the first table has an identity column, and the second table references the first table. The issue is when isFirstMSH is false, the ProcessID value is NULL. If the isFirstMSH value is false, it should insert the last generated value in the table. SQL server…

SQL Server

Answered Apr 22, 2021 · 2.4K Views Read answer →

How to add a Default constraint while creating a table? SQL Server [closed]

You can name the constraint inline: CREATE TABLE tblTest( -- -- Gender int CONSTRAINT DF_tblTest_Gender DEFAULT 3, -- ) ; As the CREATE TABLE msdn page shows: DEFAULT ... To maintain compatibility with earlier versions of SQL Server add constraint name can be assigned to a DEFAULT. In the same page, we can find that…

SQL Server

Answered Apr 16, 2021 · 631 Views Read answer →

How to create field on account to act as rollup summry field?

You are getting error because your syntax is wrong: This counter.put((ID)q.get(AccountID),(Double)q.get(Amount));needs to be counter.put((ID)q.get('AccountID'),(Double)q.get('Amount')); Hope this will help you create field on account to act as rollup summry field

Salesforce

Answered Apr 16, 2021 · 403 Views Read answer →

More members from the SQL Server community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.