Saturday, 19 August 2017

Nintex App Studio

Customize Nintex App Studio apps

This topic describes the process of building an app.
Nintex App Studio allows you to build custom versions of Nintex Mobile apps in just a few steps.
    Define general app settings: Add app details and select platforms for the app to build.
    Add connections: Add connections to fill the app with information from Nintex tenancies and sites.
    Select a theme: Upload app artwork and select a color scheme.
    Custom content: Add custom content to your app, and optionally target the app to specific forms or workflow tasks.
    Deploy and download apps: Deploy apps through App Deploy or download the app.

Create apps

Creating a custom app involves defining general app settings, adding connections, selecting a theme, and creating custom content. Apps cannot be deleted once created. Modify an existing app to make it seem new.
Note:  Apps cannot be deleted once created. Modify an existing app to make it seem new.
Go to Nintex App Studio for build the Mobile Apps:-

Visit https://www.nintex.com/workflow-platform/mobile/nintex-app-studio to get a trial of Nintex App Studio.

Define general app settings

Define the name and mobile platforms for a new app, as well as optional settings.
-          App name is visible to the mobile user.
-          Optionally enter an internal only description and create a custom URL scheme.

This topic describes the fields in the General page.
Section
Field
Description
Add details
Name
Name of app as displayed on the mobile device. Must begin with an alphabetic character and is limited to 25 characters. The following characters are allowed: hyphen (-), space, and all alphanumeric characters.

Description
App description displayed within Nintex App Studio. Not displayed in the app.

URL scheme
Custom URL scheme to build Nintex Mobile links for this app. For more information about building Nintex Mobile links, see http://help.nintex.com/en-US/O365/Default.htm#cshid=3062.
Choose platforms
Android
Build the app for Android devices. Default selection.

iPhone and iPad
Build the app for iOS devices. Default selection.

Windows
Build the app for Windows devices.

Windows Phone
Build the app for Windows devices.

Add connections

Add connections to your app to provide authentication and access methods.
Maximum number of connections: 5.
Note:  Creating a Microsoft account connection removes all other connection types. Other connections cannot be used.


This topic describes the fields for the Connections page.
Connection type
Field
Description
Corporate
Corporate
Connects directly to an on-premises SharePoint environment over a virtual private network (VPN). For use with Nintex SharePoint.

Display name
The name of the connection the mobile user will see.

URL
The address of the SharePoint server, including the protocol (http or https).

Domain
(Optional.) The name of your corporate network domain.

http://help.nintex.com/en-US/appstudio/AppStudio/images/Pencil-edit.png
(Displayed when connection is configured.)
Edit the connection information.

http://help.nintex.com/en-US/appstudio/AppStudio/images/Trash-remove.png
(Displayed when connection is configured.)
Remove the connection from the app.

http://help.nintex.com/en-US/appstudio/AppStudio/images/Drag-dots.png
(Displayed when connection is configured.)
Drag and drop the connections to change the order shown when the mobile users are creating their profiles.
Office 365
Office 365
Connects to an Office 365 tenancy using Nintex for Office 365.
Note: The mobile user will be promoted to sign in with an Office 365 username and password.

Display name
The name of the connection the mobile user will see.

URL 
The address of the Office 365 tenancy, including the protocol (http or https).
The specified tenancy must be a site with an installation of the app; the site must be accessible by the specified user account.
Example 1: https://tenantname.sharepoint.com/sites/sitename
Example 2: https://tenantname.sharepoint.com

http://help.nintex.com/en-US/appstudio/AppStudio/images/Pencil-edit.png
(Displayed when connection is configured.)
Edit the connection information.

http://help.nintex.com/en-US/appstudio/AppStudio/images/Trash-remove.png
(Displayed when connection is configured.)
Remove the connection from the app.

http://help.nintex.com/en-US/appstudio/AppStudio/images/Drag-dots.png
(Displayed when connection is configured.)
Drag and drop the connections to change the order shown when the mobile users are creating their profiles.
Nintex Workflow Cloud
Nintex Workflow Cloud
Connects to a Nintex Workflow Cloud tenancy.

Display name
The name of the connection the mobile user will see.

URL 
A valid address for a Nintex Workflow Cloud tenancy, including the protocol (http or https).
The tenancy must be accessible by the specified user account.
Example for a tenancy at the ACME company: https://acme.workflowcloud.com
Use Microsoft account
Use Microsoft account
Connection (formerly known as "Windows Live ID") that is registered with Nintex. Supported for Nintex Forms 2016, Nintex Forms 2013, and Nintex Forms 2010 only.
Note:  Creating a Microsoft account connection removes all other connection types. Other connections cannot be used.




Select a theme

Brand your app by adding artwork and choosing a defined color scheme or creating a custom one.

This topic describes fields for the Theme page.
Section
Field
Description
Add artwork
.png - 1300x1300
Colored app logo and name in a square. Size 1300 pixels by 1300 pixels.

.png - 200x200
Colored app logo and name in a rectangular. Size 1205 pixels by 310 pixels.

.png - 100x100
Colored app logo only in a square. Size 200 pixels by 200 pixels.

.png - 1205x310
Monochrome app logo only in a square. Size 100 pixels by 100 pixels.
Choose or create a color scheme
Nintex (Default)
Standard Nintex color scheme.

(defined themes)
List of alternative, tricolor color schemes.

Customize
Displays the custom color scheme section.
Create a custom color scheme (displayed when Customize is selected)
Highlight color
Color of interactive and activate sections.

Background color
Color of the app background.

User interface color
Body, label, and icon text.

Text input color
Background color of input fields.

Field and modal text color
Color of user-entered text.


Content page

This topics describes the field for the Content page.
Field
Description
http://help.nintex.com/en-US/appstudio/AppStudio/images/Toggle_open_12x12.png/http://help.nintex.com/en-US/appstudio/AppStudio/images/Toggle_close_12x12.png
Displays and closes the Add menu item dialog box. Maximum number of menu items: 16.
Icon
The icons displayed in the app.
Name
The name of the menu item visible in the app.
Type
The type of menu item.
  • Content: Upload images, videos, and documents.
Supported file types: .mp4, .3gp, .m4a, .m4v, .mov, .mp3, .wav, .avi, .mpg, .pdf, .ppt, .pptx, .xls, .xlsx, .doc, .docx, .txt, .html, and .rtf.
For more information, see Add a file menu item.
  • Scan: Scan deep linking QR codes to open them in your app.
For more information, see Add a scan menu item.
  • Menu item types include those for removed default menu items, such as Outbox.
Note:  Except for content, each menu item type is only allowed once per app.
Add content
Displayed for content menu items. Displays the Content dialog box to upload images, videos, and documents to your menu item.
For more information, see Custom content.
http://help.nintex.com/en-US/appstudio/AppStudio/images/edit_orange_13x12.png
Opens the Edit menu item dialog box to change the menu item icon and name.
For more information, see Edit menu icons and names.
http://help.nintex.com/en-US/appstudio/AppStudio/images/Delete_orange_12x12.png
Removes the menu item.
Removing a menu item deletes the option from the app. For informzation on re-adding or creating a menu item, see Custom content.
http://help.nintex.com/en-US/appstudio/AppStudio/images/Dots_to_move.png
Reorders the menu items.
Dragging and dropping the menu item determines the order they appear in the app.
Note: The first menu item is the default page when the app opens.
Forms
In the app, displays the forms associated with your connections.
To filter the visibility of the forms, see Filter forms and workflow tasks.
Task
In the app, displays the tasks associated with your connections.
To filter the visibility of the tasks, see Filter forms and workflow tasks.
Note: Only visible for connections supporting tasks.
Add filter
Displays the Forms or Tasks dialog box.
For information on how to add a filter, see Filter forms and workflow tasks.
Outbox
In the app, displays the items waiting to be submitted.
Sent items
In the app, displays the submitted items.
Draft
In the app, displays the saved, uncompleted items.
Settings
In the app, displays App settings. Can not be deleted or reordered.


Build apps

To build an app:-
   On the new app page, click Save & Build in the ribbon.

   Email notifications are sent when the build process is complete.

App Deploy page


Once your app is built, you can deploy it through either App Deploy or a Mobile Device Management (MDM) solution. When using an MDM, you must download the apps for testing and deploying.

This topics describes the field for the App Deploy page.
Selection
Description
Distribution lists
Lists of customized App Deploy recipient email addresses.
Manage distribution lists
Opens the Manage distribution lists page where the App Deploy distribution lists are editable.
Auto deploy
Automatically sends App Deploy emails to selected distribution lists when a new version of the Nintex Mobile app is released.
Note: Does not apply when app is first built.
Send email to lists now
Sends App Deploy emails to selected distribution lists.
Preview email
Sends email to site owner to preview.
View emails sent report
Opens the Email sent page, which gives details on the sent emails.
View app download report
Opens the App Downloads page, which gives details on the downloaded emails.
App details for MDM
Displays the Application info message box with Mobile Device Management (MDM) solution information for each platform.


Manage distribution lists page

This topics describes the field for the Manage distribution list page.
Field
Description
Distribution list
Name of lists configured.
Emails
Number of emails in a list.
Date last used
The date the distribution list was last used to deploy an app.
Delete
Option to delete the distribution list.
Note: Deleting the distribution list does not affect other distribution lists.

Reference Nintex App Studio






Tuesday, 6 June 2017

Date Picker Control JavaScript + SharePoint + Page


First you have to download the JS files and modify & upload in SharePoint Asset Library:-

Download CSS File:-
http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css

Download JQuery File:-
http://code.jquery.com/jquery-1.8.3.js
http://code.jquery.com/ui/1.10.0/jquery-ui.js

Go to any SharePoint page - Edit the page - Add Content Editor web part -  Paste below code.

Note- Before paste the below code just the CSS and JQuery

<html lang="en">

<head>

<style>

div.ui-datepicker{

font-size:11px;

}

</style>

<title>jQuery UI Datepicker - Default functionality</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />

<script src="http://code.jquery.com/jquery-1.8.3.js"/>

<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"/>

<script>

$(function() {

$( "#fromdatepicker" ).datepicker();

$( "#todatepicker" ).datepicker();

});

$(function() {

$("#btnFilter").click(function() {

var startDate = $("#fromdatepicker").datepicker("getDate");

startDate  =  startDate.getFullYear()+"-"+(startDate.getMonth()+1)+"-"+startDate.getDate();

var endDate = $("#todatepicker").datepicker("getDate");

endDate  =  endDate.getFullYear()+"-"+(endDate.getMonth()+1)+"-"+endDate.getDate();

alert(startDate +"-"+ endDate);

});

});

</script>

<body>

From Date: <input id="fromdatepicker" style="font-size: 11px;" type="text" />

To Date: <input id="todatepicker" style="font-size: 11px;" type="text" />

<input id="btnFilter" type="button" value="Generate Report" />

</body>

</html>


Output:- 

Tuesday, 11 April 2017

Delete all items from large list in SharePoint using Powershell



$AuditSite = Get-SPWeb "http://sharepoint/sites/AuditReport"
$list = $AuditSite.Lists["Test"]
$count = $list.ItemCount
$round = ($count/5000)+1
for($i -eq 0; $i -lt $round;$i++){
  $spQuery = New-Object Microsoft.SharePoint.SPQuery
  $spQuery.RowLimit = 5000
  $items = $list.GetItems($spQuery);
  $items.Count
  if($items.Count -gt 0)
  {
      $items | % {$list.GetItemById($_.Id).Delete()}
  }
}
$AuditSite.Dispose()

Saturday, 18 February 2017

Blob Cache in SharePoint


Disk-based Caching for Binary Large Objects
Disk-based caching controls caching for binary large objects (BLOBs) such as image, sound, and video files, as well as code fragments. Disk-based caching is extremely fast and eliminates the need for database round trips. BLOBs are retrieved from the database once and stored on the Web client. Further requests are served from the cache and trimmed based on security.
By default, it looks like this:
BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false" />
 
In order to improve the performance of your site, the BlobCache should be enabled.
BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="true" />
 
Example:
BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" max-age="86400" enabled="false"/>










• location is the directory where the cached files will be stored
• path specifies in the form of a regular expression which files are cached based on the file extension
• maxSize is the maximum allowable size of the disk-based cache in gigabytes
• max-age specifies the maximum amount of time in seconds that the client browser caches BLOBs downloaded to the client computer. If the downloaded items have not expired since the last download, the same items are not re-requested when the page is requested. The max-age attribute is set by default to 86400 seconds (that is, 24 hours), but it can be set to a time period of 0 or greater.
• enabled is a Boolean that disables or enables the cache.


Flush the BLOB cache web application:-
$webApp = Get-SPWebApplication ""
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host "Flushed the BLOB cache for:" $webApp

Saturday, 24 September 2016

Update or Change Service Account Password using PowerShell

SharePoint 2013 SP Managed Account:-

- Service accounts are accounts in Active Directory or you local system that are used by a Service (example: running the SQL Server Agent, Running the Search Crawler).
- Managed accounts are Service Accounts in Active Directory or your local system that are managed by SharePoint (example: automatic password management).
The difference between them is that the Managed Accounts are managed by SharePoint, while a regular Service account is not managed by SharePoint.

Get-SPManagedAccount

Retrieves accounts registered in the configuration database.
Syntax:-
Get-SPManagedAccount

Set-SPManagedAccount

Configures the managed account.

There are many ways we can change or update the Service account password.
- Open the server with service account.
- press "Ctr + Alt + Del" and change the password.
- After updated the password run the below script.
or Change the password through AD Service directly.

Syntax:-
$password=ConvertTo-SecureString -String $Encrypted -AsPlainText -Force
$m = Get-SPManagedAccount -Identity "DOMAINx\UserY"
Set-SPManagedAccount -Identity $m - ExistingPassword $password -UseExistingPassword $True

Saturday, 23 July 2016

Set SharePoint Custom Access Denied Page

Using Set-SPCustomLayoutsPage command you can set the custom access denied page.
Following are the steps:-
  •      Log into one of the farm WFEs as a farm administrator.
  •      Open Windows Explorer, and then navigate to this folder:-C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\
  •      Add a subfolder to this folder, naming it CustomPages.
  •      In the LAYOUTS folder copy the file AccessDenied.ASPX into the CustomPages subfolder, renaming it AccessDeniedNew.ASPX.
  •      Modify AccessDeniedNew.ASPX as desired.  To add text or other HTML elements to this page, be sure to introduce them within asp:Content tags. In the example below, formatted text has been added so that it will appear just below the "Sorry, this site..." message.
  •      After completing the modification on this WFE, copy the CustomPages subfolder into the LAYOUTS folder of each of the WFEs in your farm.
  •     Execute the command that will update the farm configuration database to point to the new location of the AccessDenied page: 
Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath "/_layouts/15/custompages/AccessDeniedNew.aspx" -WebApplication "http:/mywebapplication/"
  • The Access Denied page path is now updated.
  • Perform the IIS Reset activities in all the servers.

List of all users alerts in SharePoint 2013

Get the site collection level users alerts:-

 Add-PSSnapin microsoft.sharepoint.powershell
 $site = Get-SPSite "http://test/sites/spalerts/"
 $alertResultsCollection = @()
 foreach ($web in $site.AllWebs) {  
     foreach ($alert in $web.Alerts){
         $alertURL = $web.URL + "/" + $alert.ListUrl
         $alertResult = New-Object PSObject
         $alertResult | Add-Member -type NoteProperty -name "List URL" -value $alertURL
         $alertResult | Add-Member -type NoteProperty -name "Alert Title" -value $alert.Title
         $alertResult | Add-Member -type NoteProperty -name "Alert Type" -value $alert.AlertType
         $alertResult | Add-Member -type NoteProperty -name "Subscribed User"-value $alert.User
         $alertResultsCollection += $alertResult
      }
  }
  $site.Dispose()
  $alertResultsCollection
  
  ## Export to CSV
  $alertResultsCollection | Export-CSV "Alerts.csv"